Fix log error message (#18305)

* Fix log error message

* Update __init__.py
This commit is contained in:
Pascal Vizeli 2018-11-08 00:33:51 +01:00 committed by GitHub
parent 5bab0018f5
commit e2fca0691e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,9 +143,10 @@ async def async_check_config(hass):
result = await hassio.check_homeassistant_config()
except HassioAPIError as err:
_LOGGER.error("Error on Hass.io API: %s", err)
else:
if result['result'] == "error":
return result['message']
if result['result'] == "error":
return result['message']
return None