mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-16 05:36:29 +00:00
Fix exception is HomeAssistant allready running (#587)
This commit is contained in:
parent
e3ae48c8ff
commit
fee858c956
@ -6,7 +6,7 @@ import logging
|
|||||||
from .coresys import CoreSysAttributes
|
from .coresys import CoreSysAttributes
|
||||||
from .const import (
|
from .const import (
|
||||||
STARTUP_SYSTEM, STARTUP_SERVICES, STARTUP_APPLICATION, STARTUP_INITIALIZE)
|
STARTUP_SYSTEM, STARTUP_SERVICES, STARTUP_APPLICATION, STARTUP_INITIALIZE)
|
||||||
from .exceptions import HassioError
|
from .exceptions import HassioError, HomeAssistantError
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -87,7 +87,8 @@ class HassIO(CoreSysAttributes):
|
|||||||
|
|
||||||
# run HomeAssistant
|
# run HomeAssistant
|
||||||
if self.sys_homeassistant.boot:
|
if self.sys_homeassistant.boot:
|
||||||
await self.sys_homeassistant.start()
|
with suppress(HomeAssistantError):
|
||||||
|
await self.sys_homeassistant.start()
|
||||||
|
|
||||||
# start addon mark as application
|
# start addon mark as application
|
||||||
await self.sys_addons.boot(STARTUP_APPLICATION)
|
await self.sys_addons.boot(STARTUP_APPLICATION)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user