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

Various updates inspired by recent issues #397

Merged
merged 12 commits into from
Aug 18, 2023
Merged

Conversation

uzlonewolf
Copy link
Collaborator

Most of these are fairly minor, though "Scan for new IP address then auto-IP is used and connection to last-known address fails" and "Make connection/key errors more descriptive" are pretty big.

@jasonacox
Copy link
Owner

Tests look clean. Updated docs and bump to v1.12.10.

@jasonacox jasonacox merged commit fd65f9d into jasonacox:master Aug 18, 2023
11 checks passed
@jasonacox
Copy link
Owner

Thanks, @uzlonewolf ! 🙏

@jasonacox
Copy link
Owner

https://pypi.org/project/tinytuya/1.12.10/

@@ -885,19 +929,23 @@ def _get_socket(self, renew):
"socket unable to connect (timeout) - retry %d/%d",
retries, self.socketRetryLimit
)
err = ERR_OFFLINE
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know how I missed this. This stepped on the exception local variable err which it won't allow. Regardless, we shouldn't have had err for the exception anyway since it is used within the function already. Renaming to e.

See #402 - Thanks @simon-kuzin

@uzlonewolf uzlonewolf deleted the misc branch November 14, 2023 03:28
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.

2 participants