Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloud device list and Content-Type update #324

Merged
merged 2 commits into from
Apr 12, 2023

Conversation

uzlonewolf
Copy link
Collaborator

@uzlonewolf uzlonewolf commented Apr 11, 2023

Changes:

The Content-type: application/json header is now always added (can be disabled by setting _tuyaplatform( ..., content_type=None )

If apiDeviceID is provided, the old device list fetching routine is used by default. Leave apiDeviceID empty or set cloud.use_old_device_list = False to use the new routine.

apiDeviceID can now be a comma-separated list of device IDs and it uses all of them to build a list of UIDs.

The cloud init function now ignores any extra/unknown arguments, so you can have extra fields in tinytuya.json and tinytuya.Cloud( **config ) will still work.

Fixes #323

@uzlonewolf uzlonewolf marked this pull request as ready for review April 11, 2023 13:46
@jasonacox jasonacox merged commit dfd278f into jasonacox:master Apr 12, 2023
@jasonacox
Copy link
Owner

Thanks @uzlonewolf ! I'll push this as v1.12.3.

jasonacox added a commit that referenced this pull request Apr 12, 2023
@uzlonewolf uzlonewolf mentioned this pull request Apr 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to find devices in wizard
2 participants