From b4360ccbd9f28a1493ae3da8e6bebb5933022050 Mon Sep 17 00:00:00 2001 From: Simon Delberghe Date: Sat, 10 Jan 2026 23:58:19 +0100 Subject: [PATCH] Move condition to prioritize preset mode (eco/comfort...) instead of program name in Overkiz (#160189) --- ...ical_heater_with_adjustable_temperature_setpoint.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 a24e3abd732..fb449f4bbd3 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 @@ class AtlanticElectricalHeaterWithAdjustableTemperatureSetpoint( 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: