Fix Netgear update entity (#75496)

This commit is contained in:
starkillerOG 2022-07-20 15:51:54 +02:00 committed by Franck Nijhof
parent 0a11a623a5
commit 787f55e513
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

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