Skip to content

Add better error message when sending scanner broadcasts fails #587

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

Merged
merged 3 commits into from
Jan 26, 2025

Conversation

uzlonewolf
Copy link
Collaborator

Modifies #585 to better warn users when sending broadcast discovery messages fails. Because users may have VPNs and other non-broadcast-capable interfaces, the error is not displayed if sending on at least 1 interface succeeds.

if log.level != logging.DEBUG:
for line in bcast_error_messages:
log.error( line )
log.error( 'Sending broadcast discovery packet failed, certain v3.5 devices will not be found!' )
Copy link
Owner

Choose a reason for hiding this comment

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

Clever. I like this approach.

Copy link
Owner

@jasonacox jasonacox left a comment

Choose a reason for hiding this comment

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

Much better approach. It creates the right level of visibility into issues without stopping the scan.

@jasonacox jasonacox merged commit 443e9c8 into jasonacox:master Jan 26, 2025
16 checks passed
@jasonacox
Copy link
Owner

Version patch uploaded https://pypi.org/project/tinytuya/1.16.1/

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