Skip to content

fix: remove the __del__ warning for disconnected clients #308

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 1 commit into from
Jan 26, 2025

Conversation

allenporter
Copy link
Contributor

@allenporter allenporter commented Jan 26, 2025

This had some problems in home assistants unit test. I think it is reasonable to just require clients to shut down things properly and not have this.

This is needed to update python-roborock in Home Assistant.

@allenporter allenporter changed the title Remove the __del__ warning for disconnected clients fix: remove the __del__ warning for disconnected clients Jan 26, 2025
@Lash-L
Copy link
Collaborator

Lash-L commented Jan 26, 2025

Failing tests? Not sure if it's just a stubborn test

@allenporter
Copy link
Contributor Author

It appears that some tests are flaky, darn. I'll try to see if i can reproduce and take a look.

Maybe faking the sockets and/or using the real threads is too complex, or maybe its spotting a real issue with how we're using the mqtt client, I can't tell yet.

@allenporter
Copy link
Contributor Author

(Re-running the test and it passed so i think its flaky)

@allenporter allenporter merged commit 235752b into Python-roborock:main Jan 26, 2025
6 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