Check Celsius in SmartThings oven setpoint (#140687)

This commit is contained in:
Joost Lekkerkerker 2025-03-15 23:09:55 +01:00 committed by Franck Nijhof
parent 66fd7d9e8a
commit 403fe36489
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

@ -575,7 +575,8 @@ CAPABILITY_TO_SENSORS: dict[
translation_key="oven_setpoint",
device_class=SensorDeviceClass.TEMPERATURE,
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,
)
]
},