1
0
mirror of https://github.com/elisspace/core.git synced 2026-08-31 00:22:12 +00:00

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 Paulus Schoutsen
parent 8c2cfe0281
commit bae41d0702

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