diff --git a/homeassistant/components/overkiz/climate/atlantic_electrical_heater_with_adjustable_temperature_setpoint.py b/homeassistant/components/overkiz/climate/atlantic_electrical_heater_with_adjustable_temperature_setpoint.py index a24e3abd732e00..fb449f4bbd3a22 100644 --- a/homeassistant/components/overkiz/climate/atlantic_electrical_heater_with_adjustable_temperature_setpoint.py +++ b/homeassistant/components/overkiz/climate/atlantic_electrical_heater_with_adjustable_temperature_setpoint.py @@ -128,15 +128,15 @@ def preset_mode(self) -> str | None: states = self.device.states - if ( - operating_mode := states[OverkizState.CORE_OPERATING_MODE] - ) and operating_mode.value_as_str == OverkizCommandParam.EXTERNAL: - return PRESET_EXTERNAL - if ( state := states[OverkizState.IO_TARGET_HEATING_LEVEL] ) and state.value_as_str: return OVERKIZ_TO_PRESET_MODE[state.value_as_str] + + if ( + operating_mode := states[OverkizState.CORE_OPERATING_MODE] + ) and operating_mode.value_as_str == OverkizCommandParam.EXTERNAL: + return PRESET_EXTERNAL return None async def async_set_preset_mode(self, preset_mode: str) -> None: