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
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
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
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
Paulus Schoutsen
e7b6903ef4
Improve the readability of the config flow code ( #42169 )
2020-10-22 13:00:55 +02: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