Erik Montnemery
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
G Johansson
9989a63cdf
Add reconfigure step to config flow ( #108794 )
...
* Initial commit reconfigure
* test config config_entries
* Fix reconfigure
* test_config_entries
* review comment
* No reconfigure if reauth ongoing
* Fix tests
* Fix tests
* handle source creating flows
* combine
* No black
* Also check reconfigure in reauth flow
* Fix support
* Add entry id
* reset data entry flow
* Mods
* context data
* reset formatting
* Fix config flow platforms
* Fix tests
* Fix step message
* Handling reconfigure step
* Fix more tests
* Config entries tests
* entry_id always means reconfigure
* Mods
* Remove no longer valid exception
* Fixes
* reset silabs test
* dev reg
* resets
* assist pipeline
* Adjust config_entries
* Fix
* Fixes
* docstrings
* Review comment
* docstring
2024-03-01 12:29:35 +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
G Johansson
cb776593cf
Make context in data entry flow possible to modify for subclasses ( #110561 )
...
* Make context in data entry flow possible to modify for subclasses
* mypy
* Make get_context
* base view
* Review comments
* Remove context from options flow
2024-02-16 15:51:51 +01:00
Robert Resch
6fdad44941
Improve invalid error messages in the config flows ( #108075 )
2024-01-30 12:24:19 +01:00
Robert Resch
b0f68f1ef3
Use @require_admin decorator ( #98061 )
...
Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2023-08-14 15:07:20 +02:00
Paulus Schoutsen
14f68ec1a9
Store redirect URI in context instead of asking each time ( #77380 )
...
* Store redirect URI in context instead of asking each time
* Fix tests
2022-08-29 19:28:42 -04:00
Marc Mueller
b1ed1543c8
Improve http decorator typing ( #75541 )
2022-07-21 13:07:42 +02:00
epenet
f91aa33c5f
Add FlowResultType enum to data entry flow ( #72955 )
2022-06-07 22:02:44 -07:00
Marc Mueller
9b9b553521
Disable no-self-use [pylint] ( #70641 )
...
* Disable no-self-use
* Remove disable comments
2022-04-25 07:41:01 -07:00
Paulus Schoutsen
f6af93ae35
Add support for menu step ( #68203 )
2022-03-16 14:14:50 -07:00
Marc Mueller
bfb1abd3a2
Add type ignore error codes [helpers] ( #66776 )
2022-02-18 11:31:37 +01:00
Ruslan Sayfutdinov
55f4962c06
Fix pylint plugin which checks relative imports ( #62693 )
2021-12-23 11:14:47 -08:00
J. Nick Koston
af51aeb6dc
Show how user input is malformed in the UI on error ( #60057 )
2021-11-23 22:50:54 +01:00
Marc Mueller
238b488642
Use assignment expressions 03 ( #57710 )
2021-10-17 20:08:11 +02:00
Ville Skyttä
d8d34fdd3b
Prefer HTTPStatus over int in HA view JSON functions ( #56504 )
...
* Prefer HTTPStatus over int in HA view JSON functions
* Update zwave tests to not expect a fixed typo
2021-09-22 21:59:52 +03:00
Ruslan Sayfutdinov
183220008d
Rename FlowResultDict to FlowResult ( #49847 )
2021-04-29 13:40:51 +02:00
Ruslan Sayfutdinov
80f66f301b
Define data flow result type ( #49260 )
...
* Define data flow result type
* Revert explicit definitions
* Fix tests
* Specific mypy ignore
2021-04-15 07:17:07 -10:00
Marc Mueller
6fb2e63e49
Update typing 02 ( #48014 )
2021-03-17 18:34:19 +01:00
springstan
db582bdc1b
Use http status constants more, add HTTP_ACCEPTED and HTTP_BAD_GATEWAY ( #39993 )
...
* Use http status codes and add HTTP_BAD_GATEWAY constant
* Address review comments:
- using constants in tado integration
- using constant in media_player init.py
* Add and use HTTP_ACCEPTED constant
2020-09-15 20:01:07 +03:00
Ville Skyttä
f8416484f8
More data entry flow and HTTP related type hints ( #34430 )
2020-05-26 09:28:22 -05:00
Paulus Schoutsen
6404882ec4
Allow flows to know if user is in advanced mode ( #34629 )
2020-04-24 09:31:56 -07:00
springstan
9a40d5b7ed
Use HTTP_NOT_FOUND constant ( #33835 )
2020-04-09 00:57:47 +02:00
Franck Nijhof
b9b1cee403
Enable pylint import-outside-toplevel ( #33631 )
2020-04-04 17:07:36 +02:00
jjlawren
91018034b6
Use new custom_serializer ( #31871 )
2020-02-15 15:36:57 -08:00
Bas Nijholt
67c56c860d
Sort imports according to PEP8 for 'homeassistant' folder ( #29789 )
...
Components are already done
2019-12-09 16:42:10 +01:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Ville Skyttä
d64f1e767c
Type check all helpers ( #25373 )
...
* Type check all helpers, add inline exclusions for work in progress
* Remove unused Script._template_cache
* Add some missing type hints
* Remove unneeded type: ignore
* Type hint fixes
* Mypy assistance tweaks
* Don't look for None in deprecated config "at most once" check
* Avoid None name slugify attempt when generating entity id
* Avoid None state store attempt on entity remove
2019-07-21 09:59:02 -07:00
Paulus Schoutsen
5888e32360
Add support for an external step in config flow ( #23782 )
...
* Add support for an external step in config flow
* Types
* Lint
2019-05-10 14:33:49 +02:00
Jason Hu
f58425dd3c
Refactor data entry flow ( #15883 )
...
* Refactoring data_entry_flow and config_entry_flow
Move SOURCE_* to config_entries
Change data_entry_flow.FlowManager.async_init() source param default
to None
Change this first step_id as source or init if source is None
_BaseFlowManagerView pass in SOURCE_USER as default source
* First step of data entry flow decided by _async_create_flow() now
* Lint
* Change helpers.config_entry_flow.DiscoveryFlowHandler default step
* Change FlowManager.async_init source param to context dict param
2018-08-09 13:24:14 +02:00
Ville Skyttä
b7c336a687
Pylint cleanups ( #15626 )
...
* Pylint 2 no-else-return fixes
* Remove unneeded abstract-class-not-used pylint disable
2018-07-23 10:16:05 +02:00
Paulus Schoutsen
5ec7fc7ddb
Backend tweaks to make authorization work ( #14339 )
...
* Backend tweaks to make authorization work
* Lint
* Add test
* Validate redirect uris
* Fix tests
* Fix tests
* Lint
2018-05-10 10:38:11 +02:00
Paulus Schoutsen
cdd45e7878
Foundation for users ( #13968 )
...
* Add initial user foundation to Home Assistant
* Address comments
* Address comments
* Allow non-ascii passwords
* One more utf-8 hmac compare digest
* Add new line
2018-05-01 18:20:41 +02:00
Paulus Schoutsen
534aa0e4b5
Add data entry flow helper ( #13935 )
...
* Extract data entry flows HTTP views into helper
* Remove use of domain
* Lint
* Fix tests
* Update doc
2018-04-17 11:44:32 +02:00