mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-09 02:49:43 +00:00
fix self update style on startup (#85)
* fix self update style on startup * Check beta/dev upstream on update function
This commit is contained in:
@@ -26,6 +26,11 @@ def hassio_update(config, supervisor, websession):
|
||||
if config.last_hassio == supervisor.version:
|
||||
return
|
||||
|
||||
# don't perform a update on beta/dev channel
|
||||
if config.upstream_beta:
|
||||
_LOGGER.warning("Ignore Hass.IO update on beta upstream!")
|
||||
return
|
||||
|
||||
_LOGGER.info("Found new HassIO version %s.", config.last_hassio)
|
||||
await supervisor.update(config.last_hassio)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user