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 ruckus_unleashed for python 3.11 #94835
Conversation
Hey there @gabe565, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We require a 100% test coverage for the configuration flow, however these tests have been removed in this PR.
Therefore, this PR cannot be reviewed or merged in its current state.
../Frenck
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
Hi @frenck, is there any chance you might be able to help with the tests in the PR? In the original problem report @lanrat has mentioned that he needs some help to resolve the testing issues and sadly the rest of us who are affected simply don't have the Python/HA background to provide that help. The Ruckus Unleashed integration has been broken for all users since the 2023.6.0 release and I would really hate to see this continue into another monthly release. Any help you can provide @frenck would be really appreciated! |
Please see the above @gabe565, any chance you could help us out? |
I structured the library so it followed the recommendations here: https://developers.home-assistant.io/docs/api_lib_index/ : aiohttp.ClientSession > aioruckus.AjaxSession > aioruckus.RuckusAjaxApi. For this style of library, is there a sample or any gold-standard implementation which I can crib to implement the required config flow tests? |
At this point I have to assume the Ruckus integration is going to continue to be broken for some time while we wait for some help getting the tests to pass CI. While we are waiting, would it be possible to update the page for the integration to say that it is currently broken? It might help new users make a more informed decision about which integrations are available ... |
This comment was marked as resolved.
This comment was marked as resolved.
4bccad4
to
6dcc6b1
Compare
I did a force-push to address the CLA email error. |
@lanrat you marked it as "ready for review" a little prematurely. I had problems running the tests inside the home assistant codespace, and had to install docker desktop and setup a devcontainer. Tests are passing now, and I was able to run HA and track a ruckus_unleashed client entity. |
Oops. let me know if you want me to convert it back to draft. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert any feature changes to keep this PR small. These features can be moved into a follow-up PR, including the required migration.
Hi @lanrat could you mark this as ready for review again? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please address the comments in a new PR. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm missing an update to the translation strings.json file for the reauth confirm step and abort reauth success.
Breaking change
Proposed change
Due to lack of Python 3.11 support for the
pyruckus
library, switching to using the newer and betteraioruckus
library that support Python 3.11.This fix was made with the help of @ms264556 and is heavily based on a prior PR they had made.
Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.To help with the load of incoming pull requests: