mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 06:17:07 +00:00
Fix target temperature for AtlanticElectricalTowelDryer in Overkiz (#133657)
This commit is contained in:
parent
5afb9a5053
commit
87f5a7057e
@ -84,12 +84,15 @@ class AtlanticElectricalTowelDryer(OverkizEntity, ClimateEntity):
|
|||||||
)
|
)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def target_temperature(self) -> None:
|
def target_temperature(self) -> float | None:
|
||||||
"""Return the temperature."""
|
"""Return the target temperature."""
|
||||||
if self.hvac_mode == HVACMode.AUTO:
|
state = (
|
||||||
self.executor.select_state(OverkizState.IO_EFFECTIVE_TEMPERATURE_SETPOINT)
|
OverkizState.IO_EFFECTIVE_TEMPERATURE_SETPOINT
|
||||||
else:
|
if self.hvac_mode == HVACMode.AUTO
|
||||||
self.executor.select_state(OverkizState.CORE_TARGET_TEMPERATURE)
|
else OverkizState.CORE_TARGET_TEMPERATURE
|
||||||
|
)
|
||||||
|
|
||||||
|
return cast(float, self.executor.select_state(state))
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def current_temperature(self) -> float | None:
|
def current_temperature(self) -> float | None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user