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

Handle errors in passthrough test correctly #327

Merged
merged 2 commits into from
Dec 21, 2024

Conversation

WhySoBad
Copy link
Contributor

Hi,

Whilst experimenting with your library, I experienced a case where my lamp wasn't reachable over the network but the library printed that the passthrough protocol is supported.

The reason for this false assumption is the incorrect error handling of the test_passthrough method. Currently, it's only checked whether the error case of the result is a tapo error but any other errors are ignored and handled as if the request succeeded.

@mihai-dinculescu
Copy link
Owner

Thank you for pointing this out; it's a good catch. This issue is the same as the one that caused the error reported in #288.

@mihai-dinculescu mihai-dinculescu merged commit 0c3396f into mihai-dinculescu:main Dec 21, 2024
18 checks passed
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