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

Misc updates to find_device(), wizard, and repr(device) #196

Merged
merged 3 commits into from
Oct 14, 2022

Conversation

uzlonewolf
Copy link
Collaborator

The way find_device() returned a tuple didn't sit right with me, so I made it return a dict instead. This will also allow expanding the info returned in the future without breaking anything. I screwed up and forgot to submit a PR for this before 1.7.1 dropped, but hopefully it's recent enough that this breaking change won't be too bad.

Wizard now detects more cloud errors, namely wrong Regions and Device IDs. Fixes #195

I also updated repr to include a bit more information and what type of device it is. Still not perfect and is missing some info (such as nodelay), but it's a lot better.

@jasonacox jasonacox merged commit 54a172a into jasonacox:master Oct 14, 2022
@jasonacox
Copy link
Owner

Awesome @uzlonewolf ! I love the wizard enhancement/fix and expanding repr! On the find_device() API updates, I agree on your approach. I'll increment to 1.8.0 to keep with our versioning convention and note the minor breaking change form 1.7.1 in the release notes. Thank you! 🙏

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.

TinyTuya error
2 participants