Check if new_version is not empty string in Shelly update platform (#79300)

This commit is contained in:
Maciej Bieniek 2022-09-29 17:22:30 +00:00 committed by GitHub
parent d742e65ef5
commit 11c09f4fd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -163,7 +163,7 @@ class RestUpdateEntity(ShellyRestAttributeEntity, UpdateEntity):
new_version = self.entity_description.latest_version(
self.wrapper.device.status,
)
if new_version is not None:
if new_version not in (None, ""):
return cast(str, new_version)
return self.installed_version