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

This commit is contained in:
Maciej Bieniek
2022-09-29 13:44:11 -04:00
committed by Paulus Schoutsen
parent 8c2cfe0281
commit bae41d0702
+1 -1
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