From 6bbd8c7f7bbd650d54f62513582c3ced55f46e2b Mon Sep 17 00:00:00 2001 From: Shay Levy Date: Thu, 22 Feb 2024 17:48:14 +0200 Subject: [PATCH] Remove filter of -1 in Shelly block based sensors (#111116) --- homeassistant/components/shelly/entity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/shelly/entity.py b/homeassistant/components/shelly/entity.py index 146376e836e..513e2c88998 100644 --- a/homeassistant/components/shelly/entity.py +++ b/homeassistant/components/shelly/entity.py @@ -78,7 +78,7 @@ def async_setup_block_attribute_entities( continue # Filter out non-existing sensors and sensors without a value - if getattr(block, sensor_id, None) in (-1, None): + if getattr(block, sensor_id, None) is None: continue # Filter and remove entities that according to settings