Skip to content

Commit

Permalink
Change error dialog (setup > offline) (#122)
Browse files Browse the repository at this point in the history
LGTM
  • Loading branch information
Tony763 committed May 1, 2023
1 parent 19c1b01 commit 13b001c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def _find_entity(self, entity: str, domains: list) -> dict:
"""
self._setup()
if self.ha_client is None:
self.speak_dialog('homeassistant.error.setup')
self.speak_dialog('homeassistant.error.offline')
return False
# TODO if entity is 'all', 'any' or 'every' turn on
# every single entity not the whole group
Expand Down Expand Up @@ -822,7 +822,7 @@ def handle_fallback(self, message: Message) -> bool:
return False
self._setup()
if self.ha_client is None:
self.speak_dialog('homeassistant.error.setup')
self.speak_dialog('homeassistant.error.offline')
return False
# pass message to HA-server
response = self._handle_client_exception(
Expand Down

0 comments on commit 13b001c

Please sign in to comment.