Master RAS zone (#90825)

Fixes issue in some systems with different numbering systems
pull/90841/head
Penny Wood 2023-04-05 18:18:54 +08:00 committed by GitHub
parent 94817f61e5
commit 3ddfe027fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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