File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ def _get_locations(self) -> None:
225225
226226 def _appliance_info_finder (self , appliance : Appliance ) -> Appliance :
227227 """Collect info for all appliances found."""
228- match application .type :
228+ match appliance .type :
229229 # No longer needed since we have a Gateway
230230 # case "gateway":
231231 # # Collect gateway entity info
@@ -265,12 +265,12 @@ def _appliance_info_finder(self, appliance: Appliance) -> Appliance:
265265
266266 def _appl_gateway_info (self , appliance : Appliance ) -> Appliance :
267267 """Helper-function for _appliance_info_finder()."""
268- self ._gateway_id = application .id
268+ self ._gateway_id = appliance .id
269269
270270 # Adam: collect the ZigBee MAC address of the Smile
271271 if ADAM in appliance .name :
272272 if (found := appliance .protocols .zig_bee_coordinator ) is not None :
273- application .zigbee_mac = found .mac_address
273+ appliance .zigbee_mac = found .mac_address
274274
275275 # Also, collect regulation_modes and check for cooling, indicating cooling-mode is present
276276 self ._reg_allowed_modes = self ._get_appl_actuator_modes (
You can’t perform that action at this time.
0 commit comments