Start API server before he beform a self update (#1189)

This commit is contained in:
Pascal Vizeli 2019-08-07 18:03:56 +02:00 committed by GitHub
parent 2fc5e3b7d9
commit e5f0d80d96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,6 +74,8 @@ class HassIO(CoreSysAttributes):
async def start(self):
"""Start Hass.io orchestration."""
await self.sys_api.start()
# on release channel, try update itself
if self.sys_supervisor.need_update:
try:
@ -87,9 +89,6 @@ class HassIO(CoreSysAttributes):
"future version of Home Assistant!"
)
# start api
await self.sys_api.start()
# start addon mark as initialize
await self.sys_addons.boot(STARTUP_INITIALIZE)