mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 14:57:09 +00:00
Show current Lametric version if there is no newer version (#147538)
This commit is contained in:
parent
2c4ea0d584
commit
6b2aaf3fdb
@ -42,5 +42,5 @@ class LaMetricUpdate(LaMetricEntity, UpdateEntity):
|
|||||||
def latest_version(self) -> str | None:
|
def latest_version(self) -> str | None:
|
||||||
"""Return the latest version of the entity."""
|
"""Return the latest version of the entity."""
|
||||||
if not self.coordinator.data.update:
|
if not self.coordinator.data.update:
|
||||||
return None
|
return self.coordinator.data.os_version
|
||||||
return self.coordinator.data.update.version
|
return self.coordinator.data.update.version
|
||||||
|
Loading…
x
Reference in New Issue
Block a user