1
0
mirror of https://github.com/home-assistant/core.git synced 2026-06-28 10:16:22 +01:00

Fix Shelly 1/1PM external temperature sensor unavailable (#65096)

This commit is contained in:
Shay Levy
2022-01-28 08:33:12 +02:00
committed by GitHub
parent e591393f01
commit 631c4bf10f
+2 -2
View File
@@ -223,7 +223,7 @@ SENSORS: Final = {
device_class=SensorDeviceClass.TEMPERATURE,
state_class=SensorStateClass.MEASUREMENT,
available=lambda block: cast(int, block.extTemp) != 999
and not block.sensorError,
and not getattr(block, "sensorError", False),
),
("sensor", "humidity"): BlockSensorDescription(
key="sensor|humidity",
@@ -233,7 +233,7 @@ SENSORS: Final = {
device_class=SensorDeviceClass.HUMIDITY,
state_class=SensorStateClass.MEASUREMENT,
available=lambda block: cast(int, block.humidity) != 999
and not block.sensorError,
and not getattr(block, "sensorError", False),
),
("sensor", "luminosity"): BlockSensorDescription(
key="sensor|luminosity",