mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-21 08:06:30 +00:00
fix flow
This commit is contained in:
parent
a0a1fd4875
commit
dbcd090244
@ -129,10 +129,6 @@ class HassIO(object):
|
|||||||
loop=self.loop
|
loop=self.loop
|
||||||
)
|
)
|
||||||
|
|
||||||
# If laningpage / run upgrade in background
|
|
||||||
if self.homeassistant.version == 'landingpage':
|
|
||||||
self.loop.create_task(self.homeassistant.install())
|
|
||||||
|
|
||||||
# start api
|
# start api
|
||||||
await self.api.start()
|
await self.api.start()
|
||||||
_LOGGER.info("Start hassio api on %s", self.config.api_endpoint)
|
_LOGGER.info("Start hassio api on %s", self.config.api_endpoint)
|
||||||
@ -158,6 +154,10 @@ class HassIO(object):
|
|||||||
homeassistant_watchdog(self.loop, self.homeassistant),
|
homeassistant_watchdog(self.loop, self.homeassistant),
|
||||||
RUN_WATCHDOG_HOMEASSISTANT)
|
RUN_WATCHDOG_HOMEASSISTANT)
|
||||||
|
|
||||||
|
# If landingpage / run upgrade in background
|
||||||
|
if self.homeassistant.version == 'landingpage':
|
||||||
|
self.loop.create_task(self.homeassistant.install())
|
||||||
|
|
||||||
async def stop(self, exit_code=0):
|
async def stop(self, exit_code=0):
|
||||||
"""Stop a running orchestration."""
|
"""Stop a running orchestration."""
|
||||||
# don't process scheduler anymore
|
# don't process scheduler anymore
|
||||||
|
Loading…
x
Reference in New Issue
Block a user