From fee858c956d4f4e1739d483cabc513c5c62523a4 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Sat, 21 Jul 2018 20:13:13 +0200 Subject: [PATCH] Fix exception is HomeAssistant allready running (#587) --- hassio/core.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hassio/core.py b/hassio/core.py index ad99bad35..656ab0cf8 100644 --- a/hassio/core.py +++ b/hassio/core.py @@ -6,7 +6,7 @@ import logging from .coresys import CoreSysAttributes from .const import ( STARTUP_SYSTEM, STARTUP_SERVICES, STARTUP_APPLICATION, STARTUP_INITIALIZE) -from .exceptions import HassioError +from .exceptions import HassioError, HomeAssistantError _LOGGER = logging.getLogger(__name__) @@ -87,7 +87,8 @@ class HassIO(CoreSysAttributes): # run HomeAssistant if self.sys_homeassistant.boot: - await self.sys_homeassistant.start() + with suppress(HomeAssistantError): + await self.sys_homeassistant.start() # start addon mark as application await self.sys_addons.boot(STARTUP_APPLICATION)