mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-26 18:46:29 +00:00
Check if HA is running (#1494)
This commit is contained in:
parent
934eab2e8c
commit
4279d7fd16
@ -115,7 +115,10 @@ class HassIO(CoreSysAttributes):
|
|||||||
await self.sys_addons.boot(STARTUP_SERVICES)
|
await self.sys_addons.boot(STARTUP_SERVICES)
|
||||||
|
|
||||||
# run HomeAssistant
|
# run HomeAssistant
|
||||||
if self.sys_homeassistant.boot:
|
if (
|
||||||
|
self.sys_homeassistant.boot
|
||||||
|
and not await self.sys_homeassistant.is_running()
|
||||||
|
):
|
||||||
with suppress(HomeAssistantError):
|
with suppress(HomeAssistantError):
|
||||||
await self.sys_homeassistant.start()
|
await self.sys_homeassistant.start()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user