diff --git a/src/octoprint_psucontrol_meross/meross_client.py b/src/octoprint_psucontrol_meross/meross_client.py index 817cf82..f3c07a9 100644 --- a/src/octoprint_psucontrol_meross/meross_client.py +++ b/src/octoprint_psucontrol_meross/meross_client.py @@ -236,11 +236,11 @@ async def get_device_handles(self, dev_ids: Sequence[str]): ] ) out = [] - for device_hanle, (dev_uuid, dev_channel) in zip(devices, uuid_channel_pairs): - if not device_hanle: + for device_handle, (dev_uuid, dev_channel) in zip(devices, uuid_channel_pairs): + if not device_handle: self._logger.error(f"Device {dev_uuid!r} not found.") continue - out.append((device_hanle, dev_channel)) + out.append((device_handle, dev_channel)) return out async def set_devices_states(self, dev_ids: Sequence[str], state: bool):