Skip to content

Commit

Permalink
Remove reference to HomeSeer.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodpayne committed Apr 9, 2024
1 parent d99893a commit 5787124
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion custom_components/person_location/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
API_STATE_OBJECT = DOMAIN + "." + DOMAIN + "_integration"
INTEGRATION_NAME = "Person Location"
ISSUE_URL = "https://github.com/rodpayne/home-assistant/issues"
VERSION = "2023.12.20"
VERSION = "2024.04.08"

# Fixed parameters:
MIN_DISTANCE_TRAVELLED_TO_GEOCODE = 5
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": "2023.12.20"
"version": "2024.04.08"
}
24 changes: 12 additions & 12 deletions custom_components/person_location/process_trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,18 @@ def setup_process_trigger(pli):
def call_rest_command_service(personName, newState):
"""(Optionally) notify HomeSeer of the state change."""

rest_command = ""
rest_command = (
"homeseer_" + personName.lower() + "_" + newState.lower().replace(" ", "_")
)
try:
pli.hass.services.call("rest_command", rest_command)
except ServiceNotFound as e:
_LOGGER.debug(
"call_rest_command_service Exception %s = %s",
type(e).__name__,
str(e),
)
# rest_command = ""
# rest_command = (
# "homeseer_" + personName.lower() + "_" + newState.lower().replace(" ", "_")
# )
# try:
# pli.hass.services.call("rest_command", rest_command)
# except Exception as e:
# _LOGGER.debug(
# "call_rest_command_service Exception %s = %s",
# type(e).__name__,
# str(e),
# )

def handle_delayed_state_change(
now, *, entity_id=None, from_state=None, to_state=None, minutes=3
Expand Down

0 comments on commit 5787124

Please sign in to comment.