Remove filter of -1 in Shelly block based sensors (#111116)
parent
a7a19786cc
commit
6bbd8c7f7b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue