mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Hass.io config check (#18576)
This commit is contained in:
parent
d88040eeed
commit
0ddd502d00
@ -18,6 +18,7 @@ from homeassistant.core import callback
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.loader import bind_hass
|
||||
from homeassistant.util.dt import utcnow
|
||||
from homeassistant.exceptions import HomeAssistantError
|
||||
|
||||
from .auth import async_setup_auth
|
||||
from .handler import HassIO, HassioAPIError
|
||||
@ -143,6 +144,7 @@ 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)
|
||||
raise HomeAssistantError() from None
|
||||
else:
|
||||
if result['result'] == "error":
|
||||
return result['message']
|
||||
|
Loading…
x
Reference in New Issue
Block a user