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