hass-core/script/scaffold/templates
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
..
config_flow Type scaffold PLATFORMS (#55699) 2021-09-04 01:21:18 +02:00
config_flow_discovery/integration Generate const files for config flow scaffolds (#53064) 2021-07-15 19:57:06 +02:00
config_flow_oauth2 Add test fixture for unauthenticated HTTP client (#55561) 2021-09-02 13:09:16 +02:00
device_action Improve device action type hinting (#54850) 2021-08-20 07:13:25 +03:00
device_condition Simplify device condition code (#51266) 2021-05-31 09:47:30 +02:00
device_trigger Improve device trigger type hinting (#54907) 2021-08-22 20:32:50 +02:00
integration/integration ConfigType and async_setup/setup type hint improvements (#54739) 2021-08-18 13:22:05 +02:00
reproduce_state Extend typing on scaffold templates (#48232) 2021-03-26 15:19:44 +01:00
significant_change Update typing 16 (#48087) 2021-03-18 22:58:19 +01:00