shauntarves / wyze-sdk

A modern Python client for controlling Wyze devices.
The Unlicense
313 stars 49 forks source link

_user_id is never defined when initiating Client #181

Open jbcirs opened 5 months ago

jbcirs commented 5 months ago

self._user_id is never defined to a value when initiating Client. create_access_code will fail unless you manually define it. Current workaround is define client.locks._user_id = "your_user_guid"

shauntarves commented 5 months ago

Yes, thank you for pointing this out. This changed when the authentication schema changed from the user/pass to the API token. The user id simply isn't returning from the service during this new flow.

I'll make a note to update the docs