mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 13:15:18 +02:00
Fix target temperature for AtlanticElectricalTowelDryer in Overkiz (#133657)
This commit is contained in:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user