From 3ddfe027fd8eea91e36957890a94d62f5d2f1a31 Mon Sep 17 00:00:00 2001 From: Penny Wood Date: Wed, 5 Apr 2023 18:18:54 +0800 Subject: [PATCH] Master RAS zone (#90825) Fixes issue in some systems with different numbering systems --- homeassistant/components/izone/climate.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/izone/climate.py b/homeassistant/components/izone/climate.py index e5a45dbc5e6..4c9eb3a607c 100644 --- a/homeassistant/components/izone/climate.py +++ b/homeassistant/components/izone/climate.py @@ -142,8 +142,11 @@ class ControllerDevice(ClimateEntity): # If mode RAS, or mode master with CtrlZone 13 then can set master temperature, # otherwise the unit determines which zone to use as target. See interface manual p. 8 + # It appears some systems may have a different numbering system, so will trigger + # this if the control zone is > total zones. if ( - controller.ras_mode == "master" and controller.zone_ctrl == 13 + controller.ras_mode == "master" + and controller.zone_ctrl > controller.zones_total ) or controller.ras_mode == "RAS": self._attr_supported_features |= ClimateEntityFeature.TARGET_TEMPERATURE