mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Check Celsius in SmartThings oven setpoint (#140687)
This commit is contained in:
parent
d69bcc02b0
commit
675b684290
@ -575,7 +575,8 @@ CAPABILITY_TO_SENSORS: dict[
|
|||||||
translation_key="oven_setpoint",
|
translation_key="oven_setpoint",
|
||||||
device_class=SensorDeviceClass.TEMPERATURE,
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
use_temperature_unit=True,
|
use_temperature_unit=True,
|
||||||
value_fn=lambda value: value if value != 0 else None,
|
# Set the value to None if it is 0 F (-17 C)
|
||||||
|
value_fn=lambda value: None if value in {0, -17} else value,
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user