Commit graph

772 commits

Author SHA1 Message Date
Ville Skyttä
b10fc89a6b
Automation trigger info type hint improvements (#55402)
* Make automation trigger info a TypedDict

* zwave_js trigger type hint fixes

* Remove redundant automation trigger info field presence checks

* Use async_initialize_triggers in mqtt and tasmota device_trigger tests
2021-09-04 02:25:51 +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
Erik Montnemery
cdaba62d2c
Add test fixture for unauthenticated HTTP client (#55561)
* Add test fixture for unauthenticated HTTP client

* Remove things from the future
2021-09-02 13:09:16 +02:00
Ian
de5a22953d
Whole-string match reqs in comment_requirement (#55192)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-08-30 08:20:02 -07:00
Erik Montnemery
8b436c43f7
Enable basic type checking for cert_expiry (#55335) 2021-08-29 10:57:18 -06:00
Joakim Sørensen
2fcd77098d
Pin regex to 2021.8.28 (#55368) 2021-08-28 15:00:14 +02:00
jan iversen
d1965eef8b
Activate mypy for sonar (#55327)
* Please mypy.
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-08-28 12:05:48 +02:00
J. Nick Koston
a89057ece5
Limit USB discovery to specific manufacturer/description/serial_number matches (#55236)
* Limit USB discovery to specific manufacturer/description/serial_number matches

* test for None case
2021-08-26 09:59:02 -04:00
jan iversen
504d23ac72
Activate mypy for switchbot (#55196)
* Please mypy.

* Update homeassistant/components/switchbot/switch.py

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-08-25 13:37:08 +02:00
jan iversen
e2b1122eec
Activate mypy in gtfs (followup on reverted #54328) (#55195) 2021-08-25 10:30:29 +02:00
jan iversen
98a3ad6fd4
Revert "Please mypy in gtfs and implement needed changes (#54328)" (#55148) 2021-08-24 14:29:03 +02:00
jan iversen
e2ce1d8b24
Please mypy in gtfs and implement needed changes (#54328) 2021-08-24 11:28:45 +02:00
jan iversen
336aa74317
Activate mypy for todoist (#55096) 2021-08-24 11:23:33 +02:00
jan iversen
0ab99fc8bf
Activate mypy for surepetcare (#55079) 2021-08-24 11:21:57 +02:00
Allen Porter
58f170ba45
Pin google-api-core to avoid new version of grpcio (#55115) 2021-08-24 09:43:29 +02:00
Paulus Schoutsen
c8f584f4ef
Validate requirements format in hassfest (#55094)
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-08-24 08:51:07 +02:00
jan iversen
dae40530bd
Activate mypy for synology_srm (#55059) 2021-08-23 22:57:33 +02:00
jan iversen
9b472aee9a
Activate mypy for wink (#55077) 2021-08-23 22:55:00 +02:00
jan iversen
cada3d1819
Activate mypy for smarttub (#55070) 2021-08-23 22:52:34 +02:00
jan iversen
d5c26aece1
Activate mypy for tuya (#55057) 2021-08-23 21:30:04 +02:00
jan iversen
a5c1fbcb1a
Activate mypy for velbus (#55055) 2021-08-23 20:57:37 +02:00
jan iversen
4ef376a971
Activate mypy for volumio (#55054)
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2021-08-23 20:23:53 +02:00
jan iversen
9078824556
Activate mypy for timer (#55058) 2021-08-23 20:22:55 +02:00
Erik Montnemery
68f1c19049
Enable basic type checking for azure_event_hub (#55047)
* Enable basic type checking for azure_event_hub

* Update homeassistant/components/azure_event_hub/__init__.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Disable false pylint positive

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-08-23 17:04:42 +02:00
jan iversen
b76e8c5722
Please mypy. (#55069) 2021-08-23 17:02:31 +03:00
Erik Montnemery
03bda6ed15
Enable basic type checking for almond (#54927)
* Enable basic type checking for almond

* Tweak

* Address review comments
2021-08-23 09:35:03 +02:00
Ville Skyttä
0095c6baeb
Improve device trigger type hinting (#54907) 2021-08-22 20:32:50 +02:00
J. Nick Koston
0403ea715e
Add known devices to USB Vendor / Product IDs (#54986)
Co-authored-by: kpine <keith.pine@gmail.com>
2021-08-21 21:56:49 +02:00
J. Nick Koston
ebb8ad308e
Fix nmap_tracker typing (#54858)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-08-21 21:25:28 +02:00
jan iversen
f872594e26
Activate mypy for homematicip_cloud (#54950)
* Please mypy.

* Review comments.

* Review comments.
2021-08-21 20:19:56 +02:00
Erik Montnemery
fedd958dc0
Enable basic type checking for atag (#54933) 2021-08-21 13:39:56 +02:00
Erik Montnemery
efd15344e9
Enable basic type checking for analytics (#54928) 2021-08-21 11:46:28 +02:00
Erik Montnemery
7e5ff825dd
Enable basic type checking for adguard (#54924) 2021-08-21 11:46:00 +02:00
J. Nick Koston
8796eaec81
Add support for USB discovery to ZHA (#54935)
* Add USB discovery support to ZHA

* dry

* dry

* Update homeassistant/components/zha/config_flow.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* black

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-08-20 20:42:23 -05:00
J. Nick Koston
dc74a52f58
Add support for USB discovery (#54904)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-08-20 14:04:18 -05:00
Erik Montnemery
dbc4470979
Enable basic type checking for aemet (#54925) 2021-08-20 19:10:19 +02:00
Erik Montnemery
09ee7fc021
Enable basic type checking for asuswrt (#54929) 2021-08-20 19:08:22 +02:00
Ville Skyttä
4bb2c6e00f
Improve device action type hinting (#54850)
* Improve device action type hinting

* More precise _async_get_automations type hints

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-08-20 07:13:25 +03: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
jan iversen
20b7125620
Activate mypy for Panasonic_viera (#54547) 2021-08-18 15:34:50 +02:00
Ville Skyttä
939fde0a50
ConfigType and async_setup/setup type hint improvements (#54739) 2021-08-18 13:22:05 +02:00
jan iversen
69bc6bbe48
Activate mypy for google_pubsub (#54649) 2021-08-17 10:10:56 +02:00
jan iversen
7524acc38c
Activate mypy for sesame (#54546) 2021-08-17 00:19:12 +02:00
jan iversen
85ff5e34cd
Active mypy for netio (#54543) 2021-08-16 23:25:41 +02:00
jan iversen
b72ed68d61
Activate mypy in sabnzbd (#54539) 2021-08-16 22:55:52 +02:00
Ville Skyttä
bb4a36c877
Upgrade mypy to 0.910 and types-* (#54574)
Co-authored-by: Daniel Hjelseth Høyer <mail@dahoiv.net>
2021-08-16 22:47:37 +02:00
Paulus Schoutsen
512a474e93
Allow specifying discovery without a config flow (#54677) 2021-08-16 16:28:26 +02:00
jan iversen
045b1ca6ae
Activate mypy in lifx (#54540) 2021-08-16 12:41:35 +02:00
jan iversen
adcbd8b115
Activate mypy for Trådfri (#54416)
* Activate mypy.
2021-08-11 08:31:52 +02:00
jan iversen
1d40a6e407
Activate mypy from amcrest and make the needed changes (#54392) 2021-08-10 14:57:57 +02:00