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:
committed by
Paulus Schoutsen
parent
8c2cfe0281
commit
bae41d0702
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user