Mark installation as unsupported dev on stable (#1897)

This commit is contained in:
Pascal Vizeli 2020-08-12 13:43:15 +02:00 committed by GitHub
parent 4861fc70ce
commit 0df5b7d87b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,10 +51,14 @@ class Core(CoreSysAttributes):
"DBus is required for Home Assistant. This system is not supported!"
)
# If a update is failed?
# Check supervisor version/update
if self.sys_dev:
self.sys_config.version = self.sys_supervisor.version
elif self.sys_config.version == "dev":
elif (
self.sys_config.version == "dev"
or self.sys_supervisor.instance.version == "dev"
):
self.coresys.supported = False
_LOGGER.warning(
"Found a development supervisor outside dev channel (%s)",
self.sys_updater.channel,