core/script/scaffold/templates/config_flow/integration
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
..
__init__.py Type scaffold PLATFORMS (#55699) 2021-09-04 01:21:18 +02:00
config_flow.py Mark config flow fields as required (#51898) 2021-06-15 19:21:30 +02:00
const.py Generate const files for config flow scaffolds (#53064) 2021-07-15 19:57:06 +02:00