Skip to content

Commit c3b1edc

Browse files
committed
Rename constant to SPECIAL_PLUG_TYPES
1 parent 125b3a1 commit c3b1edc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

plugwise/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@
384384
"zone_thermostat",
385385
"thermostatic_radiator_valve",
386386
]
387-
UNLOCKABLE_TYPES: Final[list[str]] = [
387+
SPECIAL_PLUG_TYPES: Final[list[str]] = [
388388
"central_heating_pump",
389389
"valve_actuator",
390390
"heater_electric",

plugwise/helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939
LOGGER,
4040
POWER_WATT,
4141
SENSORS,
42+
SPECIAL_PLUG_TYPES,
4243
SWITCH_GROUP_TYPES,
4344
SWITCHES,
4445
THERMOSTAT_CLASSES,
45-
UNLOCKABLE_TYPES,
4646
)
4747
from .exceptions import (
4848
DeviceTimeoutError,
@@ -1272,7 +1272,7 @@ def _get_lock_state(self, xml: str) -> dict[str, Any]:
12721272
actuator = "actuators"
12731273
func_type = "relay"
12741274
appl_class = xml.find("type").text
1275-
if appl_class not in UNLOCKABLE_TYPES:
1275+
if appl_class not in SPECIAL_PLUG_TYPES:
12761276
locator = f"./{actuator}/{func_type}/lock"
12771277
if (found := xml.find(locator)) is not None:
12781278
data["lock"] = format_measure(found.text, None)

0 commit comments

Comments
 (0)