From 878e369c4a99e40dd162493020a022636d7ff84a Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Thu, 8 Nov 2018 00:33:51 +0100 Subject: [PATCH] Fix log error message (#18305) * Fix log error message * Update __init__.py --- homeassistant/components/hassio/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/hassio/__init__.py b/homeassistant/components/hassio/__init__.py index 9516675480a..8523bb5ea64 100644 --- a/homeassistant/components/hassio/__init__.py +++ b/homeassistant/components/hassio/__init__.py @@ -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