Skip to content

Commit 84a1734

Browse files
committed
Full names
1 parent b3c136e commit 84a1734

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

plugwise/helper.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -777,15 +777,15 @@ def _scan_thermostats(self) -> None:
777777
the result to update the device_class of secondary thermostats.
778778
"""
779779
self._match_and_rank_thermostats()
780-
for loc_id, loc_data in self._loc_data.items():
781-
if loc_data["primary_prio"] != 0:
782-
self._zones[loc_id] = {
780+
for location_id, location in self._loc_data.items():
781+
if location["primary_prio"] != 0:
782+
self._zones[location_id] = {
783783
"dev_class": "climate",
784784
"model": "ThermoZone",
785-
"name": loc_data["name"],
785+
"name": location["name"],
786786
"thermostats": {
787-
"primary": loc_data["primary"],
788-
"secondary": loc_data["secondary"],
787+
"primary": location["primary"],
788+
"secondary": location["secondary"],
789789
},
790790
"vendor": "Plugwise",
791791
}

0 commit comments

Comments
 (0)