From 13b001c65a002b6354c4a4d8395c18768939ceaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=C3=ADn=20Skala?= Date: Mon, 1 May 2023 14:50:53 +0200 Subject: [PATCH] Change error dialog (setup > offline) (#122) LGTM --- __init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index 35841457..7f719eb8 100644 --- a/__init__.py +++ b/__init__.py @@ -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 @@ -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(