events.list not executing properly
Closed this issue · 1 comments
liamhoganson commented
When trying to execute:
response = client.events.list(event_values= "[EventAlarmType.MOTION]")
I'm getting this error:
kwargs.update({"event_value_list": [code for code in event_values.codes]}) AttributeError: 'str' object has no attribute 'codes'
shauntarves commented
Hi @liamhoganson, this isn't the correct syntax for the command you're trying to execute. You have the quotes in the wrong place. It should be:
from wyze_sdk.models.events import EventAlarmType
...
response = client.events.list(event_values= [EventAlarmType.MOTION])