From 4279d7fd16e72325e730447c2cf3c49e7a7936d4 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Sun, 9 Feb 2020 22:15:34 +0100 Subject: [PATCH] Check if HA is running (#1494) --- hassio/core.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hassio/core.py b/hassio/core.py index 8f2d7cd7e..beaec91ad 100644 --- a/hassio/core.py +++ b/hassio/core.py @@ -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()