Compare commits

...

3 Commits

Author SHA1 Message Date
Abílio Costa
a11e3c3a59 Merge branch 'dev' into whirlpool_remove_check 2025-12-05 16:15:24 +00:00
abmantis
54fdb98990 Remove uneeded check in whirlpool oven temperature sensors
https://github.com/abmantis/whirlpool-sixth-sense/pull/115 added proper
checks to the library, which now returns None when the value is zero,
making the checks on the integration unecessary.
2025-12-04 18:30:42 +00:00
abmantis
c0be1cc7f7 Bump whirlpool-sixth-sense to 1.0.3 2025-12-04 18:22:57 +00:00

View File

@@ -244,9 +244,7 @@ OVEN_CAVITY_SENSORS: tuple[WhirlpoolOvenCavitySensorEntityDescription, ...] = (
device_class=SensorDeviceClass.TEMPERATURE,
state_class=SensorStateClass.MEASUREMENT,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
value_fn=lambda oven, cavity: (
temp if (temp := oven.get_temp(cavity)) != 0 else None
),
value_fn=lambda oven, cavity: oven.get_temp(cavity),
),
WhirlpoolOvenCavitySensorEntityDescription(
key="oven_target_temperature",
@@ -254,9 +252,7 @@ OVEN_CAVITY_SENSORS: tuple[WhirlpoolOvenCavitySensorEntityDescription, ...] = (
device_class=SensorDeviceClass.TEMPERATURE,
state_class=SensorStateClass.MEASUREMENT,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
value_fn=lambda oven, cavity: (
temp if (temp := oven.get_target_temp(cavity)) != 0 else None
),
value_fn=lambda oven, cavity: oven.get_target_temp(cavity),
),
)