Skip to content

Commit 8637b54

Browse files
committed
Change constant definition for multi-use
1 parent 8f6669f commit 8637b54

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

plugwise/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
VOLUME_CUBIC_METERS_PER_HOUR: Final = "m³/h"
3434

3535
ADAM: Final = "Adam"
36-
ALLOWED_ZONE_PROFILES: Final[tuple[str, str, str]] = ("active", "off", "passive")
36+
ALLOWED_ZONE_PROFILES: Final[list[str]] = ["active", "off", "passive"]
3737
ANNA: Final = "Smile Anna"
3838
ANNA_P1: Final = "Smile Anna P1"
3939
DEFAULT_TIMEOUT: Final = 10

plugwise/helper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
ACTIVE_KEYS,
1414
ACTUATOR_CLASSES,
1515
ADAM,
16+
ALLOWED_ZONE_PROFILES,
1617
ANNA,
1718
ATTR_NAME,
1819
DATA,
@@ -847,7 +848,7 @@ def _regulation_control(self, data: GwEntityData) -> None:
847848
"""
848849
if (reg_control := data["thermostat"].get("regulation_control")) is not None:
849850
data["select_zone_profile"] = reg_control
850-
data["zone_profiles"] = ["active", "off", "passive"]
851+
data["zone_profiles"] = ALLOWED_ZONE_PROFILES
851852
data["thermostat"].pop("regulation_control")
852853
self._count += 1
853854

0 commit comments

Comments
 (0)