Fix exception is HomeAssistant allready running (#587)

This commit is contained in:
Pascal Vizeli 2018-07-21 20:13:13 +02:00 committed by GitHub
parent e3ae48c8ff
commit fee858c956
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)