We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a0564b commit 80a6fb3Copy full SHA for 80a6fb3
1 file changed
plugwise/helper.py
@@ -779,15 +779,15 @@ def _scan_thermostats(self) -> None:
779
the result to update the device_class of secondary thermostats.
780
"""
781
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] = {
+ for location_id, location in self._loc_data.items():
+ if location["primary_prio"] != 0:
+ self._zones[location_id] = {
785
"dev_class": "climate",
786
"model": "ThermoZone",
787
- "name": loc_data["name"],
+ "name": location["name"],
788
"thermostats": {
789
- "primary": loc_data["primary"],
790
- "secondary": loc_data["secondary"],
+ "primary": location["primary"],
+ "secondary": location["secondary"],
791
},
792
"vendor": "Plugwise",
793
}
0 commit comments