Fix log error message (#18305)

* Fix log error message

* Update __init__.py
This commit is contained in:
Pascal Vizeli authored and Paulus Schoutsen committed 2018-11-08 10:07:48 +01:00
1 parent f24979c7cf
commit 878e369c4a
1 file changed
+3 -2
+3 -2
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