Josef Zweck
67f6c59ab2
Pass translation domain to AbortFlow ( #180257 )
2026-08-26 12:39:22 +02:00
Josef Zweck and Copilot Autofix powered by AI
85596871ee
Allow config flow aborts to be translated by another integration ( #180240 )
...
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com >
2026-08-26 11:16:25 +02:00
Bram Kragten
0c816c22e0
Remove show_advanced_options from data entry flow API ( #172249 )
2026-05-27 11:13:24 +02:00
Erik Montnemery and Martin Hjelmare
78db1e3407
Deprecate the FlowHandler show_advanced_options property ( #171754 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2026-05-26 10:25:41 +02:00
Ariel Ebersberger
5432d29489
Use is/is not for same-enum identity comparisons (tests) ( #171689 )
2026-05-22 11:32:27 +02:00
Erik Montnemery
a09e042d42
Add test of FlowHandler show_advanced_options property ( #171681 )
2026-05-21 11:47:42 +02:00
9a1fd913bf
Fix line length violations in tests (non-components) ( #170804 )
...
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: frenck <195327+frenck@users.noreply.github.com >
2026-05-17 10:30:45 -04:00
Erik Montnemery
143eadd887
Remove progress_step date entry flow decorator ( #160844 )
2026-01-13 13:52:57 +01:00
Erik Montnemery
dcc559f8b6
Fix progress step bugs ( #155923 )
2025-11-12 13:14:53 +01:00
puddly
a4c0a9b3a5
Revert "Fix progress step recursion ( #153906 )" ( #155866 )
2025-11-05 18:46:39 +01:00
Martin Hjelmare
abd0ee7bce
Fix progress step recursion ( #153906 )
2025-11-05 15:48:35 +01:00
karwosts
3385151c26
Test for async_show_menu sort ( #151630 )
2025-09-03 18:46:57 +02:00
Matthias Alphart
63640af4d4
Update voluptuous-serialize to 2.7.0 ( #150822 )
2025-08-19 16:42:49 +02:00
karwosts and Erik Montnemery
aa6b37bc7c
Fix add_suggested_values_to_schema when the schema has sections ( #149718 )
...
Co-authored-by: Erik Montnemery <erik@montnemery.com >
2025-07-31 20:50:26 +02:00
Erik Montnemery
f7d54b46ec
Improve test of FlowHandler.add_suggested_values_to_schema ( #149759 )
2025-07-31 17:55:15 +02:00
Erik Montnemery
a857461059
Handle late abort when creating subentry ( #145765 )
...
* Handle late abort when creating subentry
* Move error handling to the base class
* Narrow down expected error in test
2025-05-28 12:26:28 +02:00
Petar Petrov
9239ace1c8
Config flow progress in percent ( #142737 )
...
* Config flow progress in percent
* PR comments
2025-04-14 10:24:01 +02:00
Erik Montnemery
cf63175232
Abort reauth flows on config entry reload ( #140931 )
...
* Abort reauth flows on config entry reload
* Don't cancel reauth when reload is triggered by a reauth flow
* Revert "Don't cancel reauth when reload is triggered by a reauth flow"
This reverts commit f37c75621e .
* Don't fail in FlowManager._async_handle_step when the flow was aborted
* Update tplink config flow
* Add tests
* Don't allow create_entry from an aborted flow
* Add comment
* Adjust after merge with dev
2025-04-10 20:55:34 +02:00
Erik Montnemery
f344314762
Abort if a flow is removed during a step ( #142138 )
...
* Abort if a flow is removed during a step
* Reorganize code
* Only call _set_pending_import_done if an entry is created
* Try a new approach
* Add tests
* Update tests
2025-04-09 07:04:41 -10:00
Erik Montnemery
075a0ad780
Add tests of behavior when completing an aborted data entry flow ( #142590 )
2025-04-09 15:17:54 +02:00
Jan Bouwhuis
e192bfb62e
Do not deepcopy section schema when applying suggested values ( #141280 )
...
Do not deep copy section schema when appying suggested values
2025-03-24 15:32:57 +01:00
Jan Bouwhuis
0f60fd8c40
Test data entry flow form showing suggested values ( #141249 )
...
Add test with from showing suggested values to data entry flow tests
2025-03-24 10:36:02 +01:00
Robert Resch and epenet
a68cf21179
Remove deprecated data entry flow constants ( #131800 )
...
* Remove deprecated data entry flow constants
* Fix
* Fix
* Fix
* Fix
---------
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com >
2024-11-29 00:37:26 +01:00
Erik Montnemery and J. Nick Koston
3c0be47d3c
Add FlowManager.async_has_matching_flow ( #126804 )
...
* Add FlowManager.async_flow_has_matching_flow
* Revert changes from the future
* Apply suggested changes to apple_tv config flow
* Rename methods after discussion
* Update homeassistant/data_entry_flow.py
Co-authored-by: J. Nick Koston <nick@koston.org >
* Move deduplication functions to config_entries, add tests
* Adjust tests
---------
Co-authored-by: J. Nick Koston <nick@koston.org >
2024-09-27 10:51:36 +02:00
Erik Montnemery
174f22aa2f
Prevent nesting sections in data entry flows ( #124645 )
2024-08-28 15:42:15 +02:00
0545ed8082
Section support for data entry flows ( #118369 )
...
* Add expandable support for data entry form flows
* Update config_validation.py
* optional options
* Adjust
* Correct translations of data within sections
* Update homeassistant/components/kitchen_sink/config_flow.py
Co-authored-by: Robert Resch <robert@resch.dev >
* Add missing import
* Update tests/components/kitchen_sink/test_config_flow.py
Co-authored-by: Robert Resch <robert@resch.dev >
* Format code
* Match frontend when serializing
* Move section class to data_entry_flow
* Correct serializing
* Fix import in kitchen_sink
* Move and update test
---------
Co-authored-by: Bram Kragten <mail@bramkragten.nl >
Co-authored-by: Robert Resch <robert@resch.dev >
2024-06-25 11:02:00 +02:00
epenet
041746a50b
Improve type hints in data_entry_flow tests ( #119877 )
2024-06-18 13:25:28 +02:00
epenet
9f41133bbc
Add missing argument type to core tests ( #119667 )
2024-06-14 08:42:01 +02:00
epenet
c70cfbb535
Fix arguments-renamed pylint warning in tests ( #119473 )
2024-06-12 12:25:29 +02:00
epenet
7d631c28a6
Ignore attribute-defined-outside-init pylint warnings in tests ( #119470 )
2024-06-12 12:22:31 +02:00
J. Nick Koston
ee535ee611
Ensure test async_create_task eager start behavior matches production ( #115517 )
2024-04-13 15:58:52 -05:00
J. Nick Koston
ca5ed274cb
Deprecate calling async_listen and async_listen_once with run_immediately ( #115169 )
2024-04-08 10:07:54 -10:00
Sid
d846676e84
Enable first batch of Ruff RET rules ( #114480 )
...
* Enable first batch of Ruff RET rules
* disable pylint rules
2024-03-31 11:30:59 +02:00
Sid
a5b609f081
Enable ruff TRY401 ( #114395 )
...
* Enable ruff TRY401
* fix tests
2024-03-29 07:20:36 +01:00
6bb4e7d62c
Bump ruff to 0.3.4 ( #112690 )
...
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com >
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com >
Co-authored-by: J. Nick Koston <nick@koston.org >
2024-03-26 00:02:16 +01:00
Sid and Franck Nijhof
00ec7f11f0
Enable Ruff rule PT007 ( #113764 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl >
2024-03-19 09:01:07 +01:00
Marc Mueller
a6b842f818
Add empty line after module docstring (2) [other] ( #112738 )
2024-03-08 19:16:38 +01:00
Erik Montnemery and Marc Mueller
3d3e9900c3
Add TypeVar default for FlowResult ( #112345 )
...
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com >
2024-03-05 22:52:11 +01:00
Erik Montnemery
a0e558c457
Add generic classes BaseFlowHandler and BaseFlowManager ( #111814 )
...
* Add generic classes BaseFlowHandler and BaseFlowManager
* Migrate zwave_js
* Update tests
* Update tests
* Address review comments
2024-02-29 16:52:39 +01:00
Erik Montnemery
e90b42d3d0
Fix FlowHandler show progress ( #108586 )
2024-01-21 22:40:48 +01:00
Erik Montnemery
fb24e086b2
Hide FlowResultType.SHOW_PROGRESS_DONE from frontend ( #107799 )
...
* Hide FlowResultType.SHOW_PROGRESS_DONE from frontend
* Update tests
2024-01-16 09:04:27 +01:00
Erik Montnemery
00165fef5b
Improve the test class used for testing FlowManager.async_show_progress ( #107786 )
...
* Improve the test class used for testing FlowManager.async_show_progress
* Address review comments
2024-01-14 18:39:45 +01:00
Erik Montnemery
24c23d7323
Warn if integrations call async_show_progress without passing a task ( #107796 )
2024-01-13 11:56:05 +01:00
Erik Montnemery
44a6882c39
Make step_id parameter to FlowHandler.async_show_progress optional ( #107802 )
...
Drop step_id parameter from FlowHandler.async_show_progress
2024-01-11 21:05:20 +01:00
Erik Montnemery
24cd6a8a52
Improve ergonomics of FlowManager.async_show_progress ( #107668 )
...
* Improve ergonomics of FlowManager.async_show_progress
* Don't include progress coroutine in web response
* Unconditionally reset progress task when show_progress finished
* Fix race
* Tweak, add tests
* Address review comments
* Improve error handling
* Allow progress jobs to return anything
* Add comment
* Remove unneeded check
* Change API according to discussion
* Adjust typing
2024-01-11 12:00:12 +01:00
J. Nick Koston
7d18ad6fe7
Reduce discovery flow matching overhead ( #107709 )
2024-01-10 07:14:18 -10:00
Erik Montnemery
c805ea7b4f
Include deprecated constants in wildcard imports ( #107114 )
2024-01-05 11:46:45 +01:00
Robert Resch
060172fc24
Deprecate deprecated data entry flow constants ( #106229 )
2023-12-23 11:25:39 +01:00
Erik Montnemery
4498c2e8c4
Validate steps in Flowhandler ( #102152 )
...
* Validate steps in Flowhandler
* Move validation to FlowManager._async_handle_step
* Fix _raise_if_not_has_step
* Fix config_entries tests
* Fix tests
* Rename
* Add test
2023-10-19 13:34:10 +02:00
Simon Lamon and Martin Hjelmare
a618e8d1cf
Fix loop in progress config flow ( #97229 )
...
* Fix data entry flow with multiple steps
* Update a test
* Update description and add a show progress change test
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2023-10-02 14:15:54 +02:00