Check if HA is running (#1494)

This commit is contained in:
Pascal Vizeli 2020-02-09 22:15:34 +01:00 committed by GitHub
parent 934eab2e8c
commit 4279d7fd16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,7 +115,10 @@ class HassIO(CoreSysAttributes):
await self.sys_addons.boot(STARTUP_SERVICES)
# run HomeAssistant
if self.sys_homeassistant.boot:
if (
self.sys_homeassistant.boot
and not await self.sys_homeassistant.is_running()
):
with suppress(HomeAssistantError):
await self.sys_homeassistant.start()