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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code Quality improvements for Aussie Broadband #65408
Conversation
Hey there @nickw444, mind taking a look at this pull request as it has been labeled with an integration ( |
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
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.
Looks good!
@@ -229,7 +186,7 @@ async def test_reauth(hass: HomeAssistant) -> None: | |||
context={"source": config_entries.SOURCE_REAUTH}, | |||
data=FAKE_DATA, | |||
) | |||
assert result5["step_id"] == "reauth" | |||
assert result5["step_id"] == "reauth_confirm" | |||
|
|||
with patch("aussiebb.asyncio.AussieBB.__init__", return_value=None), patch( |
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.
This patch (and similar) still looks weird, but we can address that in a separate PR.
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.
Yeah I expected we may need to discuss this further. I tried removing the init patch and things broke. Now that the library has been bumped, I think I will be able to do a PR focusing on tests.
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.
It should be enough to patch "homeassistant.components.aussie_broadband.config_flow.AussieBB.login"
and the same for "get_services"
.
Breaking change
Proposed change
This primarily addresses issues raised here #53552 (review)
I am expecting additional feedback about the test cases.
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
.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: