mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-10-14 22:29:40 +00:00
Bugfix Check Config for Home-Assistant (#350)
* add logger * Bugfix config check
This commit is contained in:
@@ -136,8 +136,8 @@ class APIHomeAssistant(CoreSysAttributes):
|
||||
@api_process
|
||||
async def check(self, request):
|
||||
"""Check config of homeassistant."""
|
||||
code, message = await self._homeassistant.check_config()
|
||||
if not code:
|
||||
raise RuntimeError(message)
|
||||
result = await self._homeassistant.check_config()
|
||||
if not result.valid:
|
||||
raise RuntimeError(result.log)
|
||||
|
||||
return True
|
||||
|
Reference in New Issue
Block a user