Add reconfigure to Steam integration - #174696
Conversation
|
Hey there @tkdrob, 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.
Pull request overview
This PR adds a reconfigure flow to the Steam (steam_online) integration, allowing users to update their Steam Web API key via the UI's reconfigure option. It builds on the existing reauth flow by reusing the async_step_reauth_confirm logic, branching on the flow source to pick the correct config entry and form step, and adds the name placeholder needed for the reconfigure title.
Changes:
- Added
async_step_reconfigurethat reusesasync_step_reauth_confirm, with source-based selection of the entry (_get_reauth_entryvs_get_reconfigure_entry), step ID, and anamedescription placeholder. - Added
reconfigurestep andreconfigure_successfulabort strings instrings.json, reusing existing user-step API key strings. - Added tests covering the reconfigure happy path and error scenarios, mirroring the existing reauth tests.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
homeassistant/components/steam_online/config_flow.py |
Adds the reconfigure step and adapts the shared reauth/reconfigure confirm logic and placeholders. |
homeassistant/components/steam_online/strings.json |
Adds reconfigure step strings and the reconfigure_successful abort message. |
tests/components/steam_online/test_config_flow.py |
Adds reconfigure success and error test cases mirroring the reauth tests. |
|
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
This reverts commit f1a6d61.
24d953e to
3306dd8
Compare
erwindouna
left a comment
There was a problem hiding this comment.
One last nit, and then it looks good. :)
98ea7c3 to
f5615d3
Compare
Proposed change
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: