Show current Lametric version if there is no newer version (#147538)

This commit is contained in:
Joost Lekkerkerker 2025-06-26 10:55:31 +02:00 committed by Franck Nijhof
parent 2c4ea0d584
commit 6b2aaf3fdb
No known key found for this signature in database
GPG Key ID: AB33ADACE7101952

View File

@ -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