From d9165ed4e5cd0150bb7c21e6dc1cb14bf9614a0f Mon Sep 17 00:00:00 2001 From: Swamp-Ig Date: Thu, 22 Aug 2024 12:42:05 +0000 Subject: [PATCH 1/2] Fix for #123462 --- homeassistant/components/izone/climate.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/izone/climate.py b/homeassistant/components/izone/climate.py index 3a1279a9bd43e..a03bad4abc944 100644 --- a/homeassistant/components/izone/climate.py +++ b/homeassistant/components/izone/climate.py @@ -446,6 +446,9 @@ def __init__(self, controller: ControllerDevice, zone: Zone) -> None: """Initialise ZoneDevice.""" self._controller = controller self._zone = zone + self._attr_supported_features = ( + ClimateEntityFeature.TURN_OFF | ClimateEntityFeature.TURN_ON + ) if zone.type != Zone.Type.AUTO: self._state_to_pizone = { From c58a4ce37082a8e7746290268760cf3a0093d687 Mon Sep 17 00:00:00 2001 From: Swamp-Ig Date: Thu, 22 Aug 2024 13:05:15 +0000 Subject: [PATCH 2/2] Set outside of constructor --- homeassistant/components/izone/climate.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/izone/climate.py b/homeassistant/components/izone/climate.py index a03bad4abc944..617cdc730cc08 100644 --- a/homeassistant/components/izone/climate.py +++ b/homeassistant/components/izone/climate.py @@ -441,14 +441,14 @@ class ZoneDevice(ClimateEntity): _attr_name = None _attr_temperature_unit = UnitOfTemperature.CELSIUS _attr_target_temperature_step = 0.5 + _attr_supported_features = ( + ClimateEntityFeature.TURN_OFF | ClimateEntityFeature.TURN_ON + ) def __init__(self, controller: ControllerDevice, zone: Zone) -> None: """Initialise ZoneDevice.""" self._controller = controller self._zone = zone - self._attr_supported_features = ( - ClimateEntityFeature.TURN_OFF | ClimateEntityFeature.TURN_ON - ) if zone.type != Zone.Type.AUTO: self._state_to_pizone = {