mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Check if new_version
is not empty string in Shelly update platform (#79300)
This commit is contained in:
parent
d742e65ef5
commit
11c09f4fd8
@ -163,7 +163,7 @@ class RestUpdateEntity(ShellyRestAttributeEntity, UpdateEntity):
|
|||||||
new_version = self.entity_description.latest_version(
|
new_version = self.entity_description.latest_version(
|
||||||
self.wrapper.device.status,
|
self.wrapper.device.status,
|
||||||
)
|
)
|
||||||
if new_version is not None:
|
if new_version not in (None, ""):
|
||||||
return cast(str, new_version)
|
return cast(str, new_version)
|
||||||
|
|
||||||
return self.installed_version
|
return self.installed_version
|
||||||
|
Loading…
x
Reference in New Issue
Block a user