Commit Graph

784 Commits

Author SHA1 Message Date
Kevin Eifinger
663c0374ab Add full typing to kraken (#50718)
* Add full typing to kraken

* Let device_info return DeviceInfo

* Replace unsub_listeners with entry.async_on_unload

* Raise TypeError on end of _try_get_state

* Assert Coordinator is not none

* Add class SensorType

* Add strict typing to kraken

* Add changes from code review

* Revert typed dict creation
2021-05-17 10:12:04 +03:00
Paulus Schoutsen
1b74359ddb Disable free-mobile because requirement breaks setuptools (#50749) 2021-05-17 08:12:23 +02:00
Ruslan Sayfutdinov
703456abea Better errors handling in mypy hassfest plugin (#50689) 2021-05-16 07:04:09 -07:00
Martin Hjelmare
5da64d01e2 Fix smhi typing (#50690) 2021-05-15 21:38:12 +02:00
Michael
25b2fd0cee Add strict typing to fritzbox (#50486)
* enable strict typing

* apply suggestions

* set defaults for FritzboxConfigFlow

* improvements and suggestions

* another suggestion

* tweaks

* tweaks
2021-05-15 07:54:11 +02:00
Ville Skyttä
ed10856cc4 UpCloud API and typing update (#50624) 2021-05-14 21:49:41 -07:00
Kevin Eifinger
c220e70008 Add integration kraken (#31114)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-05-14 08:02:11 -07:00
Pascal Vizeli
9d174e8a05 GRPC is fixed, don't need a workaround (#50605)
* GRPC is fixed, don't need a workaround

* Update gen_requirements_all.py
2021-05-14 14:30:48 +02:00
Ruslan Sayfutdinov
35f304450c Enable type checks for stream component (#50527)
* Enable type checks for stream component

* Fix pylint
2021-05-13 23:26:11 +02:00
Paulus Schoutsen
2cdf075f95 Only return empty string if non-fixable errors (#50508) 2021-05-12 08:54:04 +02:00
karliemeads
e9f8b3e7ef Remove unused py_noaa dependency (#50494) 2021-05-12 00:44:17 +02:00
Simone Chemelli
e616583bad Improve types for Fritz (#50327)
Co-authored-by: Ruslan Sayfutdinov <ruslan@sayfutdinov.com>
Co-authored-by: Maciej Bieniek <bieniu@users.noreply.github.com>
2021-05-11 10:41:27 -05:00
epenet
d6c99a3db9 Enable strict type checks for onewire (#50422) 2021-05-11 17:28:17 +02:00
Maciej Bieniek
f5541a468e Improve type annotations for GIOS integration (#50454) 2021-05-11 07:57:24 -07:00
Martin Hjelmare
f71eb4d34d Clean somfy config flow tests (#50461) 2021-05-11 16:19:07 +02:00
Ruslan Sayfutdinov
1538271555 Don't generate mypy.ini if errors are found (#50456) 2021-05-11 14:29:14 +02:00
Ruslan Sayfutdinov
3a192896df Enable some strict mypy checks globally (#50398)
* Enable some strict mypy checks globally

* Update mypy.ini
2021-05-10 14:20:25 +02:00
Michael
042822e35e Improve typing for synology_dsm (#49656) 2021-05-09 22:44:55 +02:00
Shay Levy
be73067f9c Fix Shelly type hints (#50322) 2021-05-09 19:46:53 +02:00
Dermot Duffy
4e4042a869 Fix types for WLED (#50001) 2021-05-09 19:34:21 +02:00
Ruslan Sayfutdinov
9b058551f7 Enable type checks for camera platform (#50179) 2021-05-09 18:04:57 +02:00
Gleb Sinyavskiy
52b1a416d9 Remove the N26 integration (#50292) 2021-05-09 00:58:23 +02:00
Maciej Bieniek
6df0190aeb Improve type annotations for Airly integration (#49898) 2021-05-07 09:47:52 -05:00
Franck Nijhof
e3e9239798 Strictly type Twente Milieu integration (#50062) 2021-05-05 22:04:09 -07:00
Franck Nijhof
96f69fb9fb Finalize clean up connection classes (#49895) 2021-05-04 20:08:51 +02:00
Milan Meulemans
a0feee083c Fix and enable type checks in Rituals Perfume Genie (#49947) 2021-05-04 14:47:17 +02:00
Dermot Duffy
809c1394d4 Enable mypy for motionEye (aye aye!) (#49738) 2021-05-04 08:19:41 +02:00
jan iversen
f0ec9c38b0 Fix modbus typing (#49938)
Add changes needed to please mypy and follow the coding rules
of the project.
2021-05-03 22:45:21 +02:00
Ruslan Sayfutdinov
5fd8e7008e Create separate entries for each component in mypy.ini (#50030) 2021-05-03 18:45:38 +02:00
Dermot Duffy
e8446cb4d9 Fix types for shell command (#50004) 2021-05-03 10:43:23 +02:00
Paulus Schoutsen
8e0e1405e8 Make hassfest service validation faster (#50003) 2021-05-02 21:49:51 -07:00
Bram Kragten
8ca6b8394c Correct the selector for frontend.set_theme service (#49952) 2021-05-02 21:07:26 -07:00
jan iversen
ebee5f7808 Fix ihc typing (#49946) 2021-05-01 21:01:56 +02:00
jan iversen
60ae230499 Please mypy (axis). (#49949)
* Please mypy (axis).

* Update homeassistant/components/axis/config_flow.py

Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>

Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
2021-05-01 16:13:43 +02:00
Franck Nijhof
dc46a213a7 Enable strict typing for the Elgato integration (#49920) 2021-04-30 13:21:30 -07:00
David F. Mulcahey
4ed74cd2f5 Move ZHA config panel section translations to the backend (#49816) 2021-04-30 09:29:34 -07:00
Franck Nijhof
c68b259bd3 Cleanup of unused connection_class logic (#49865)
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-04-29 23:12:58 +02:00
Ruslan Sayfutdinov
a4db35a16e Rename FlowResultDict in scaffold template (#49858) 2021-04-29 17:10:31 +02:00
Ruslan Sayfutdinov
02764c2f46 Disable strict type checks for tests (#49851) 2021-04-29 15:57:02 +02:00
Franck Nijhof
52f3a7249f hassfest detect built-in domain override for custom integrations (#49845) 2021-04-29 11:43:23 +02:00
Ruslan Sayfutdinov
a0bf95d4b5 Validate if modules in mypy config exist (#49810) 2021-04-29 06:29:53 +02:00
Franck Nijhof
14af6d3884 Remove DHT from Raspberry Pi machine builds (#49829) 2021-04-28 22:43:40 +02:00
J. Nick Koston
dcb5b9f8b5 Bump httpx to 0.18.0 and respx to 0.17.0 (#49805) 2021-04-28 11:22:09 +02:00
Ruslan Sayfutdinov
2adc6d62e5 Replace .no-strict-typing with .strict-typing (#49762) 2021-04-27 09:13:11 -07: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
Ruslan Sayfutdinov
37466ae423 Don't ignore mypy errors by default (#49270) 2021-04-26 14:23:21 +02:00
Paulus Schoutsen
9f8e683ae3 Ask for IoT class during scaffold (#49647)
Co-authored-by: Milan Meulemans <milan.meulemans@live.be>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-04-25 12:13:22 +02:00
Milan Meulemans
48695869f9 Change dict[str, Any] to FlowResultDict (#49546) 2021-04-22 17:23:15 -10:00
Paulus Schoutsen
984962d985 Improve DHCP + Zeroconf manifest validation (#49321) 2021-04-16 13:32:12 -10:00
Franck Nijhof
055cdc64c0 Add support for IoT class in manifest (#46935) 2021-04-15 10:21:38 +02:00