How to access Device query using listDevice ?
Hi,
I am trying to use filter in listDevice to access device query but the function is returning query object of other device. Expected Device ID and returned device ID does not match. I have used filter in Java script works fine but in python script i am facing this issue. Would be great if you let me know is it the correct way to use filter?
print("Expected Device-id: ",device_id)
aux_dev_item = account.devices.listDevice( {
"filter": {
"tags": [
{ "key": "device_type", "value": "aux" },
{ "key": "device_id", "value": device_id }
]
},
"amount": 20
}
)
Thank you