Skip to content

Commit 9e26331

Browse files
committed
Further progress - appliance typos
1 parent 1432005 commit 9e26331

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugwise/helper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def _get_locations(self) -> None:
230230

231231
def _appliance_info_finder(self, appliance: Appliance) -> Appliance:
232232
"""Collect info for all appliances found."""
233-
match application.type:
233+
match appliance.type:
234234
# No longer needed since we have a Gateway
235235
# case "gateway":
236236
# # Collect gateway entity info
@@ -270,12 +270,12 @@ def _appliance_info_finder(self, appliance: Appliance) -> Appliance:
270270

271271
def _appl_gateway_info(self, appliance: Appliance) -> Appliance:
272272
"""Helper-function for _appliance_info_finder()."""
273-
self._gateway_id = application.id
273+
self._gateway_id = appliance.id
274274

275275
# Adam: collect the ZigBee MAC address of the Smile
276276
if ADAM in appliance.name:
277277
if (found := appliance.protocols.zig_bee_coordinator) is not None:
278-
application.zigbee_mac = found.mac_address
278+
appliance.zigbee_mac = found.mac_address
279279

280280
# Also, collect regulation_modes and check for cooling, indicating cooling-mode is present
281281
self._reg_allowed_modes = self._get_appl_actuator_modes(

0 commit comments

Comments
 (0)