-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
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
KNX Config/OptionsFlow: Test connection to manually configured tunnel #82872
Conversation
Hey there @Julius2342, @marvin-w, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
3a6fecf
to
71156df
Compare
f77104b
to
3dd466b
Compare
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.
Nice, looks good to me!
@@ -908,6 +1070,7 @@ async def test_options_flow_connection_type( | |||
gateway = _gateway_descriptor("192.168.0.1", 3675) | |||
|
|||
await hass.config_entries.async_setup(mock_config_entry.entry_id) | |||
hass.data[DOMAIN] = Mock() # GatewayScanner uses running XKNX() in options flow |
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.
If we need the integration setup, set up the integration without patching the integration setup function. Just patch the library. Never set things in hass.data in 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.
Addressed in #83208
Proposed change
🔐
because its cute 😃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: