Skip to content

Commit 6c6b3f2

Browse files
CoMPaTechbouwew
authored andcommitted
Further progress - appliance typos
1 parent 408682b commit 6c6b3f2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

plugwise/helper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)