Skip to content

Commit 80a6fb3

Browse files
committed
Full names
1 parent 4a0564b commit 80a6fb3

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
@@ -779,15 +779,15 @@ def _scan_thermostats(self) -> None:
779779
the result to update the device_class of secondary thermostats.
780780
"""
781781
self._match_and_rank_thermostats()
782-
for loc_id, loc_data in self._loc_data.items():
783-
if loc_data["primary_prio"] != 0:
784-
self._zones[loc_id] = {
782+
for location_id, location in self._loc_data.items():
783+
if location["primary_prio"] != 0:
784+
self._zones[location_id] = {
785785
"dev_class": "climate",
786786
"model": "ThermoZone",
787-
"name": loc_data["name"],
787+
"name": location["name"],
788788
"thermostats": {
789-
"primary": loc_data["primary"],
790-
"secondary": loc_data["secondary"],
789+
"primary": location["primary"],
790+
"secondary": location["secondary"],
791791
},
792792
"vendor": "Plugwise",
793793
}

0 commit comments

Comments
 (0)