Fix Netgear update entity (#75496)

This commit is contained in:
starkillerOG 2022-07-20 15:51:54 +02:00 committed by GitHub
parent fb4aff25a2
commit 8ad2bed363
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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