mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-15 13:16:29 +00:00
Log if board reported by HAOS isn't in version file (#3366)
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
This commit is contained in:
parent
5503f93a75
commit
5b96074055
@ -242,11 +242,15 @@ class Updater(FileConfiguration, CoreSysAttributes):
|
|||||||
|
|
||||||
# Update HassOS version
|
# Update HassOS version
|
||||||
if self.sys_os.board:
|
if self.sys_os.board:
|
||||||
events.append("os")
|
|
||||||
self._data[ATTR_HASSOS] = AwesomeVersion(
|
|
||||||
data["hassos"][self.sys_os.board]
|
|
||||||
)
|
|
||||||
self._data[ATTR_OTA] = data["ota"]
|
self._data[ATTR_OTA] = data["ota"]
|
||||||
|
if version := data["hassos"].get(self.sys_os.board):
|
||||||
|
events.append("os")
|
||||||
|
self._data[ATTR_HASSOS] = AwesomeVersion(version)
|
||||||
|
else:
|
||||||
|
_LOGGER.warning(
|
||||||
|
"Board '%s' not found in version file. No OS updates.",
|
||||||
|
self.sys_os.board,
|
||||||
|
)
|
||||||
|
|
||||||
# Update Home Assistant plugins
|
# Update Home Assistant plugins
|
||||||
self._data[ATTR_CLI] = AwesomeVersion(data["cli"])
|
self._data[ATTR_CLI] = AwesomeVersion(data["cli"])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user