1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 12:29:08 +00:00

Improve supervisor update handling (#300)

* Improve supervisor update handling

* fix message position
This commit is contained in:
Pascal Vizeli
2018-01-08 14:55:13 +01:00
committed by GitHub
parent 0c44064926
commit f8e6362283
3 changed files with 12 additions and 6 deletions

View File

@@ -54,8 +54,9 @@ class HassIO(CoreSysAttributes):
"""Start HassIO orchestration."""
# on release channel, try update itself
# on beta channel, only read new versions
if not self._updater.beta_channel:
await self._supervisor.update()
if not self._updater.beta_channel and self._supervisor.need_update:
if await self._supervisor.update():
return
else:
_LOGGER.info("Ignore Hass.io auto updates on beta mode")
@@ -93,7 +94,7 @@ class HassIO(CoreSysAttributes):
if self._homeassistant.version == 'landingpage':
self._loop.create_task(self._homeassistant.install())
_LOGGER.info("Hass.io is up and running")
_LOGGER.info("Hass.io is up and running")
async def stop(self):
"""Stop a running orchestration."""