From 1114014bc911616518ebe108e2f498093d6e82ab Mon Sep 17 00:00:00 2001 From: hoellen Date: Sat, 29 Jan 2022 09:49:29 +0100 Subject: [PATCH] Show connection errors in Albert log --- __init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/__init__.py b/__init__.py index 9551c3a..47d04f5 100644 --- a/__init__.py +++ b/__init__.py @@ -129,6 +129,7 @@ def showEntities(query): response = requests.get(config["state_query"], headers=config["headers"]) response.raise_for_status() except requests.exceptions.RequestException as error: + critical(str(error)) return Item(id=__title__, icon=os.path.dirname(__file__) + "/" + icon_files["logo"], text="Error while getting entity states from Home Assistant",