1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 12:29:08 +00:00
This commit is contained in:
Pascal Vizeli
2018-04-23 15:32:23 +02:00
parent 42dd4d9557
commit b486883ff6
13 changed files with 132 additions and 56 deletions

View File

@@ -23,16 +23,19 @@ class HassIO(CoreSysAttributes):
if self.sys_config.timezone == 'UTC':
self.sys_config.timezone = await fetch_timezone(self._websession)
# supervisor
# Load DBus
await self.sys_dbus.load()
# Load Host
await self.sys_host.load()
# Load Supervisor
await self.sys_supervisor.load()
# hostcontrol
await self._host_control.load()
# Load homeassistant
# Load Home Assistant
await self.sys_homeassistant.load()
# Load addons
# Load Add-ons
await self.sys_addons.load()
# rest api views
@@ -50,9 +53,6 @@ class HassIO(CoreSysAttributes):
# start dns forwarding
self.sys_create_task(self.sys_dns.start())
# start addon mark as initialize
await self.sys_addons.auto_boot(STARTUP_INITIALIZE)
async def start(self):
"""Start HassIO orchestration."""
# on release channel, try update itself
@@ -67,6 +67,9 @@ class HassIO(CoreSysAttributes):
await self.sys_api.start()
_LOGGER.info("Start API on %s", self.sys_docker.network.supervisor)
# start addon mark as initialize
await self.sys_addons.auto_boot(STARTUP_INITIALIZE)
try:
# HomeAssistant is already running / supervisor have only reboot
if self.sys_hardware.last_boot == self.sys_config.last_boot: