Skip to content

Commit

Permalink
Merge pull request #12 from saibotk/master
Browse files Browse the repository at this point in the history
fix: get_devices only checks for the first type
  • Loading branch information
majuss authored Nov 9, 2023
2 parents 2865025 + bef669d commit 1662742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lupupy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def get_devices(self, refresh=False, generic_type=None):
if generic_type:
devices = []
for device in self._devices.values():
if device.type is not None and device.type in generic_type[0]:
if device.type is not None and device.type in generic_type:
devices.append(device)
return devices

Expand Down

0 comments on commit 1662742

Please sign in to comment.