mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 23:27:37 +00:00
Fix Netgear update entity (#75496)
This commit is contained in:
parent
fb4aff25a2
commit
8ad2bed363
@ -59,7 +59,9 @@ class NetgearUpdateEntity(NetgearRouterEntity, UpdateEntity):
|
|||||||
"""Latest version available for install."""
|
"""Latest version available for install."""
|
||||||
if self.coordinator.data is not None:
|
if self.coordinator.data is not None:
|
||||||
new_version = self.coordinator.data.get("NewVersion")
|
new_version = self.coordinator.data.get("NewVersion")
|
||||||
if new_version is not None:
|
if new_version is not None and not new_version.startswith(
|
||||||
|
self.installed_version
|
||||||
|
):
|
||||||
return new_version
|
return new_version
|
||||||
return self.installed_version
|
return self.installed_version
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user