File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments