Skip to content

Commit

Permalink
CATD-361 - added filtering to get_devices call
Browse files Browse the repository at this point in the history
  • Loading branch information
Ndifreke committed Mar 9, 2022
1 parent 7fa047e commit b7daa60
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions livestyled/resource_client.py
Expand Up @@ -848,9 +848,10 @@ def get_device(
return self._get_resource_by_id(DeviceSchema, id)

def get_devices(
self
self,
filters: Dict or None = None
) -> Generator[Device, None, None]:
return self._get_resource_list(DeviceSchema)
return self._get_resource_list(DeviceSchema, filters=filters)

# ---- DEVICE TOKENS

Expand Down

0 comments on commit b7daa60

Please sign in to comment.