Fix Shelly humidity sensor available condition (#57721)

pull/57747/head
Shay Levy 2021-10-15 03:48:28 +03:00 committed by GitHub
parent e7e88d6a19
commit 9000e5b2d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ SENSORS: Final = {
value=lambda value: round(value, 1),
device_class=sensor.DEVICE_CLASS_HUMIDITY,
state_class=sensor.STATE_CLASS_MEASUREMENT,
available=lambda block: cast(int, block.extTemp) != 999,
available=lambda block: cast(int, block.humidity) != 999,
),
("sensor", "luminosity"): BlockAttributeDescription(
name="Luminosity",