mirror of
https://github.com/home-assistant/core.git
synced 2025-09-10 07:11:37 +02:00
Show current Lametric version if there is no newer version (#147538)
This commit is contained in:
committed by
GitHub
parent
79df38eff2
commit
4b9b08ece5
@@ -42,5 +42,5 @@ class LaMetricUpdate(LaMetricEntity, UpdateEntity):
|
||||
def latest_version(self) -> str | None:
|
||||
"""Return the latest version of the entity."""
|
||||
if not self.coordinator.data.update:
|
||||
return None
|
||||
return self.coordinator.data.os_version
|
||||
return self.coordinator.data.update.version
|
||||
|
Reference in New Issue
Block a user