Skip to content

Commit

Permalink
Bump version.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodpayne committed Jun 13, 2024
1 parent 95dd9f6 commit e4c2814
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions custom_components/person_location/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@
API_STATE_OBJECT = DOMAIN + "." + DOMAIN + "_integration"
INTEGRATION_NAME = "Person Location"
ISSUE_URL = "https://github.com/rodpayne/home-assistant_person_location/issues"
VERSION = "2024.06.08"
VERSION = "2024.06.13"

# Constants:
METERS_PER_KM = 1000
METERS_PER_MILE = 1609.34
IC3_STATIONARY = "stationary"

# Fixed parameters:
MIN_DISTANCE_TRAVELLED_TO_GEOCODE = 5
Expand Down Expand Up @@ -432,7 +433,7 @@ def __init__(self, _entity_id, _pli):
targetStateObject = self.hass.states.get(self.entity_id)
if targetStateObject is not None:
self.firstTime = False
if (targetStateObject.state.lower().endswith("stationary")) or (
if (IC3_STATIONARY in targetStateObject.state.lower()) or (
targetStateObject.state == STATE_NOT_HOME
):
self.state = "Away"
Expand Down
2 changes: 1 addition & 1 deletion custom_components/person_location/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
"iot_class": "calculated",
"issue_tracker": "https://github.com/rodpayne/home-assistant_person_location/issues",
"requirements": [],
"version": "2024.06.08"
"version": "2024.06.13"
}

0 comments on commit e4c2814

Please sign in to comment.