mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Fix Shelly 1/1PM external temperature sensor unavailable (#65096)
This commit is contained in:
parent
e591393f01
commit
631c4bf10f
@ -223,7 +223,7 @@ SENSORS: Final = {
|
|||||||
device_class=SensorDeviceClass.TEMPERATURE,
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
available=lambda block: cast(int, block.extTemp) != 999
|
available=lambda block: cast(int, block.extTemp) != 999
|
||||||
and not block.sensorError,
|
and not getattr(block, "sensorError", False),
|
||||||
),
|
),
|
||||||
("sensor", "humidity"): BlockSensorDescription(
|
("sensor", "humidity"): BlockSensorDescription(
|
||||||
key="sensor|humidity",
|
key="sensor|humidity",
|
||||||
@ -233,7 +233,7 @@ SENSORS: Final = {
|
|||||||
device_class=SensorDeviceClass.HUMIDITY,
|
device_class=SensorDeviceClass.HUMIDITY,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
available=lambda block: cast(int, block.humidity) != 999
|
available=lambda block: cast(int, block.humidity) != 999
|
||||||
and not block.sensorError,
|
and not getattr(block, "sensorError", False),
|
||||||
),
|
),
|
||||||
("sensor", "luminosity"): BlockSensorDescription(
|
("sensor", "luminosity"): BlockSensorDescription(
|
||||||
key="sensor|luminosity",
|
key="sensor|luminosity",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user