mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 14:15:12 +02:00
Fix Netgear update entity (#75496)
This commit is contained in:
committed by
Franck Nijhof
parent
0a11a623a5
commit
787f55e513
@@ -59,7 +59,9 @@ class NetgearUpdateEntity(NetgearRouterEntity, UpdateEntity):
|
||||
"""Latest version available for install."""
|
||||
if self.coordinator.data is not None:
|
||||
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 self.installed_version
|
||||
|
||||
|
Reference in New Issue
Block a user