-
-
Notifications
You must be signed in to change notification settings - Fork 35.8k
Add Z-Wave USB migration confirm step #149243
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
Conversation
|
Hey there @home-assistant/z-wave, 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.
Pull Request Overview
This PR adds a confirmation step to the Z-Wave USB discovery flow when migrating from an existing adapter to a new one. Previously, users were taken directly to the NVM backup progress without any context about what was happening.
Key changes:
- Adds a new confirmation step that explains the migration process before proceeding
- Updates the flow to show users what will happen when migrating to a new Z-Wave USB adapter
- Provides better user experience by giving context before starting the migration
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
homeassistant/components/zwave_js/config_flow.py |
Adds new async_step_confirm_usb_migration method and updates USB flow to use it |
homeassistant/components/zwave_js/strings.json |
Adds UI strings for the new confirmation step |
tests/components/zwave_js/test_config_flow.py |
Updates existing tests to handle the new confirmation step |
Breaking change
Proposed change
Add a confirmation step when the user starts a USB discovery flow with an existing config entry which will lead to the migration flow.
We removed the general USB discovery confirm step a while ago, but didn't consider the case that leads to the migration flow. There's now no context for the user what's happening, but they are dumped directly in the NVM backup progress. Add the confirmation step to explain what will happen if the user proceeds with the flow.
Type of change
Additional information
Checklist
ruff format 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.To help with the load of incoming pull requests: