From 11c09f4fd81ba7cf79333d16600c0d4d992a46a2 Mon Sep 17 00:00:00 2001 From: Maciej Bieniek Date: Thu, 29 Sep 2022 17:22:30 +0000 Subject: [PATCH] Check if `new_version` is not empty string in Shelly update platform (#79300) --- homeassistant/components/shelly/update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/shelly/update.py b/homeassistant/components/shelly/update.py index 63972e9456d..fa37b394b6c 100644 --- a/homeassistant/components/shelly/update.py +++ b/homeassistant/components/shelly/update.py @@ -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