Skip to content

Commit

Permalink
Test connection
Browse files Browse the repository at this point in the history
  • Loading branch information
Garulf committed Feb 18, 2022
1 parent e24c59f commit e15fd7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def init_hass(self):
def query(self, query):
try:
self.init_hass()
self.client.api()
except (ReadTimeout, ConnectionError, HTTPError):
self.add_item(
title=f"Could not connect to Home Assistant!",
Expand Down

0 comments on commit e15fd7c

Please sign in to comment.