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 @@ -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 }
You can’t perform that action at this time.
0 commit comments