Fix log error message (#18305)

* Fix log error message

* Update __init__.py
pull/18335/head
Pascal Vizeli 2018-11-08 00:33:51 +01:00 committed by Paulus Schoutsen
parent f24979c7cf
commit 878e369c4a
1 changed files with 3 additions and 2 deletions

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