From 9000e5b2d9b68b6df6c944342405ba3e6b8a5449 Mon Sep 17 00:00:00 2001 From: Shay Levy Date: Fri, 15 Oct 2021 03:48:28 +0300 Subject: [PATCH] Fix Shelly humidity sensor available condition (#57721) --- homeassistant/components/shelly/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/shelly/sensor.py b/homeassistant/components/shelly/sensor.py index 10e5977a51a..f61df56eaa7 100644 --- a/homeassistant/components/shelly/sensor.py +++ b/homeassistant/components/shelly/sensor.py @@ -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",