Marc Mueller
fe21e2b8ba
Import Generator from typing_extensions (1) ( #118986 )
2024-06-06 17:02:13 +02:00
Marc Mueller
26fb7627ed
Update scaffold templates to use runtime_data ( #117819 )
2024-05-21 07:15:08 +02:00
Sid
2cc916db6d
Replace pylint broad-except with Ruff BLE001 ( #116250 )
2024-05-07 14:00:27 +02:00
Marc Mueller
19ab3d6daf
Add empty line after module docstring [helpers + other] ( #112707 )
2024-03-08 10:36:11 -05: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
Joost Lekkerkerker
a8ca73a7dd
Finish scaffold config flow with either abort or create entry ( #105012 )
2023-12-05 17:13:29 +01:00
Joost Lekkerkerker
374b1cfd0c
Fix bug in config flow scaffold ( #104965 )
2023-12-04 07:48:05 +01:00
Joost Lekkerkerker
b56cd169ac
Use constants in config flow scaffold ( #104964 )
2023-12-04 07:46:36 +01:00
epenet
92bcb04e4f
Adjust scaffold docstring ( #90157 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-03-23 10:13:53 +01:00
epenet
bf5f7c53d8
Move mock_setup_entry to conftest ( #88484 )
2023-03-06 11:31:50 +01:00
epenet
5dda1de5bd
Adjust async_setup_entry in config_flow scaffold ( #88319 )
2023-02-17 13:43:56 +01:00
Luke
bb4d6c0d2c
Rework user_input check in config flow scaffold ( #87820 )
...
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-02-12 22:02:14 +01:00
Paulus Schoutsen
481205535c
Add PrusaLink integration ( #77429 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-08-29 20:45:27 -04:00
Tomasz Wieczorek
50a1de9f73
Add set default for domain for scaffold script ( #76628 )
...
* Add set default for domain for scaffold script
* Add default domain for config_flow_discovery integration
* Extend comment explaining usage
2022-08-29 00:02:27 +02:00
Franck Nijhof
6ebdf0580b
Remove last occurrences of RESULT_TYPE_* from codebase ( #74670 )
...
Remove last ocurrances of RESULT_TYPE_* from codebase
2022-07-07 22:35:06 +02:00
Joakim Sørensen
4e6f35f4fb
Use assignment expression for unload_ok in scaffold templates ( #64286 )
2022-01-17 14:49:26 +01:00
Joakim Sørensen
5a33610739
Use Platform enum in scaffold templates ( #64091 )
2022-01-14 02:13:56 +02:00
Paulus Schoutsen
a4d9019ffc
Refactor persistent notification to no longer route all data via a service ( #57157 )
...
* Convert persistent notification tests to async
* Create/dismiss persistent notifications in exposed functions, not service calls
* Fix notify persistent_notification
* Remove setting up persistent_notification
* Drop more setups
* Empty methods
* Undeprecate sync methods because too big task
* Fix setup clearing notifications
* Fix a bunch of tests
* Fix more tests
* Uno mas
* Test persistent notification events
* Clean up stale comment
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-10-07 12:58:00 +02:00
Tomasz Wieczorek
501e7c84be
Type scaffold PLATFORMS ( #55699 )
...
* Added template base type
Proposition to add typing, as pre-commit test on newly created integrations fails on it automatically:
```
homeassistant/components/<my_integration>/__init__.py:11: error: Need type annotation for "PLATFORMS" (hint: "PLATFORMS: List[<type>] = ...") [var-annotated]
Found 1 error in 1 file (checked 4 source files)
```
I believe there shouldn't be other type than text, hence the proposition.
* Apply suggestions from code review
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
2021-09-04 01:21:18 +02:00
Paulus Schoutsen
4ae2a26aa3
Add config flow to Rainforest EAGLE-200 ( #54846 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-08-19 09:22:30 -07:00
Paulus Schoutsen
989839a1a9
Generate const files for config flow scaffolds ( #53064 )
2021-07-15 19:57:06 +02:00
Milan Meulemans
63e20f2ced
Mark config flow fields as required ( #51898 )
...
* flo
* goalzero
* mutesync
* ring
* roon
* risco
* Ruckus Unleashed
* Scaffold template
2021-06-15 19:21:30 +02:00
Ville Skyttä
c2f5dcefa5
Use flow result type constants more ( #51122 )
2021-05-29 14:09:13 +02:00
Franck Nijhof
96f69fb9fb
Finalize clean up connection classes ( #49895 )
2021-05-04 20:08:51 +02:00
Ruslan Sayfutdinov
a4db35a16e
Rename FlowResultDict in scaffold template ( #49858 )
2021-04-29 17:10:31 +02:00
J. Nick Koston
51be2f860a
Reduce boilerplate to setup config entry platforms A-C ( #49681 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-04-26 07:46:55 -10:00
Milan Meulemans
48695869f9
Change dict[str, Any] to FlowResultDict ( #49546 )
2021-04-22 17:23:15 -10:00
Marc Mueller
2956eb0902
Update pylint to 2.7.3 ( #48488 )
...
* Update pylint to 2.7.3
* Add class-const-naming-style
* Remove unused-import message
* Additional cleanup
2021-03-29 18:02:56 -10:00
Franck Nijhof
52475c108f
Make integration setup optional ( #48381 )
2021-03-29 13:53:47 -07:00
Franck Nijhof
d2d78d6205
Extend typing on scaffold templates ( #48232 )
2021-03-26 15:19:44 +01:00
Quentame
198ecb0945
Uniformize platform setup ( #47101 )
...
* A platform is not a component
* Fix dynalite
* SUPPORTED_PLATFORMS --> PLATFORMS
* In tests
* In tests 2
* Fix SmartThings
* Fix ZHA test
* Fix Z-Wave
* Revert Z-Wave
* Use PLATFORMS const in ambient_station
* Fix ihc comment
2021-03-02 21:43:59 +01:00
Paulus Schoutsen
e584902b8b
Remove empty schema ( #45044 )
2021-01-11 14:25:09 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Paulus Schoutsen
1c36bf5e19
Fix block till done in create entry config flow tests ( #42290 )
2020-10-24 16:20:56 +02:00
Paulus Schoutsen
e7b6903ef4
Improve the readability of the config flow code ( #42169 )
2020-10-22 13:00:55 +02:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
Paulus Schoutsen
ec47216388
Use built-in test helpers on 3.8 ( #34901 )
2020-04-30 13:29:50 -07:00
Paulus Schoutsen
f50714d7e9
Update config flow test scaffolding ( #30694 )
...
* Update config flow test scaffolding
* asyncpatch -> patch
* Update classname
2020-01-13 15:20:25 +01:00
Bas Nijholt
5cb6d1b21f
Sort imports according to PEP8 for 'script' folder ( #29790 )
2019-12-09 16:24:03 +01:00
Fabian Affolter
314c3d0965
Use integration name in docstring ( #28445 )
2019-11-02 21:28:07 -07:00
Paulus Schoutsen
24c29f9227
Add OAuth2 config flow scaffold ( #28220 )
...
* Add OAuth2 scaffold
* Generate integration if non-existing domain specified
* Update URL
2019-10-29 20:34:03 -07:00
Paulus Schoutsen
5a4a3e17cc
Split scaffolding script ( #26832 )
...
* Add scaffolding split
* Add second config flow method
2019-09-22 21:46:50 -06:00