Clarify tahoma errrors (#12307)

pull/12218/merge
Thijs de Jong 2018-02-11 20:36:04 +01:00 committed by Fabian Affolter
parent 767d3c6206
commit 47bfef9640
1 changed files with 2 additions and 2 deletions

View File

@ -57,14 +57,14 @@ def setup(hass, config):
try:
api = TahomaApi(username, password)
except RequestException:
_LOGGER.exception("Error communicating with Tahoma API")
_LOGGER.exception("Error when trying to log in to the Tahoma API")
return False
try:
api.get_setup()
devices = api.get_devices()
except RequestException:
_LOGGER.exception("Cannot fetch information from Tahoma API")
_LOGGER.exception("Error when getting devices from the Tahoma API")
return False
hass.data[DOMAIN] = {