Show connection errors in Albert log
This commit is contained in:
parent
31dfa017cf
commit
1114014bc9
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user