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

Fix reloading the integration from hanging #192

Merged
merged 4 commits into from
Sep 16, 2024

Conversation

knightzac19
Copy link
Contributor

When doing reload on the integration, it would always hang and all entities would become unavailable. This would require homeassistant to completely reboot before the integration would work again. Changing it to use the built in platforms unload function has fixed this behavior.

@knightzac19 knightzac19 changed the title Connection fixes Fix reloading the integration from hanging Sep 14, 2024
@knightzac19
Copy link
Contributor Author

@dotvezz fixed my branch from the main merge, should pass workflows now.

@dotvezz dotvezz merged commit cefd4f5 into libdyson-wg:main Sep 16, 2024
2 checks passed
@Anto79-ops
Copy link
Contributor

thanks for this PR. Sometimes my machine would go offline (wifi connection issue), and I would try to reload it, and that issue happens. Now, if I reload it, will it attemp to connecto the machine?

@knightzac19
Copy link
Contributor Author

Yea, if the entity isn't showing "unavailable"(it should still work if it is, just didn't test that scenario as much), reload should work now. I tested my 475 by kicking it off wifi and then reloading, it correctly reconnected and started working again.

@Anto79-ops
Copy link
Contributor

thanks!

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.

3 participants