Skip to content

Commit a2b3719

Browse files
committed
Optimize
1 parent c5faf0b commit a2b3719

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugwise/legacy/helper.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,10 +453,9 @@ def _presets(self) -> dict[str, list[float]]:
453453
def _schedules(self) -> tuple[list[str], str]:
454454
"""Collect the schedule for the legacy thermostat."""
455455
available: list[str] = [NONE]
456-
selected = NONE
456+
rule_id = selected = NONE
457457
name: str | None = None
458458

459-
rule_id = NONE
460459
search = self._domain_objects
461460
if (result := search.find("./rule[name='Thermostat schedule']")) is not None:
462461
name = "Thermostat schedule"

0 commit comments

Comments
 (0)