Show connection errors in Albert log

This commit is contained in:
hoellen 2022-01-29 09:49:29 +01:00
parent 31dfa017cf
commit 1114014bc9

View File

@ -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",