Remove filter of -1 in Shelly block based sensors (#111116)

pull/111168/head
Shay Levy 2024-02-22 17:48:14 +02:00 committed by GitHub
parent a7a19786cc
commit 6bbd8c7f7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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