Fix target temperature for AtlanticElectricalTowelDryer in Overkiz (#133657)

This commit is contained in:
Mick Vleeshouwer 2024-12-20 16:00:44 +01:00 committed by GitHub
parent 5afb9a5053
commit 87f5a7057e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -84,12 +84,15 @@ class AtlanticElectricalTowelDryer(OverkizEntity, ClimateEntity):
)
@property
def target_temperature(self) -> None:
"""Return the temperature."""
if self.hvac_mode == HVACMode.AUTO:
self.executor.select_state(OverkizState.IO_EFFECTIVE_TEMPERATURE_SETPOINT)
else:
self.executor.select_state(OverkizState.CORE_TARGET_TEMPERATURE)
def target_temperature(self) -> float | None:
"""Return the target temperature."""
state = (
OverkizState.IO_EFFECTIVE_TEMPERATURE_SETPOINT
if self.hvac_mode == HVACMode.AUTO
else OverkizState.CORE_TARGET_TEMPERATURE
)
return cast(float, self.executor.select_state(state))
@property
def current_temperature(self) -> float | None: