Tomasz
08cebb247f
Activate mypy for rpi_power ( #57047 )
2021-10-04 22:13:11 +02:00
Maciej Bieniek
f3c76fb859
Add strict typing to Tractive integration ( #56948 )
...
* Strict typing
* Add few missing types
* Run hassfest
* Fix mypy errors
* Use List instead of list
2021-10-03 09:13:12 +02:00
icemanch
a95c6b10f7
Flux led config flow ( #56354 )
...
Co-authored-by: Milan Meulemans <milan.meulemans@live.be>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-10-02 07:19:36 -10:00
Milan Meulemans
e757cb2ab4
Strictly type Nanoleaf ( #56852 )
2021-09-30 16:48:28 -05:00
jan iversen
19685ecff0
Set strict typing for modbus. ( #56779 )
2021-09-29 16:15:55 +03:00
Michael Chisholm
a28fd7d61b
Config-flow for DLNA-DMR integration ( #55267 )
...
* Modernize dlna_dmr component: configflow, test, types
* Support config-flow with ssdp discovery
* Add unit tests
* Enforce strict typing
* Gracefully handle network devices (dis)appearing
* Fix Aiohttp mock response headers type to match actual response class
* Fixes from code review
* Fixes from code review
* Import device config in flow if unavailable at hass start
* Support SSDP advertisements
* Ignore bad BOOTID, fix ssdp:byebye handling
* Only listen for events on interface connected to device
* Release all listeners when entities are removed
* Warn about deprecated dlna_dmr configuration
* Use sublogger for dlna_dmr.config_flow for easier filtering
* Tests for dlna_dmr.data module
* Rewrite DMR tests for HA style
* Fix DMR strings: "Digital Media *Renderer*"
* Update DMR entity state and device info when changed
* Replace deprecated async_upnp_client State with TransportState
* supported_features are dynamic, based on current device state
* Cleanup fully when subscription fails
* Log warnings when device connection fails unexpectedly
* Set PARALLEL_UPDATES to unlimited
* Fix spelling
* Fixes from code review
* Simplify has & can checks to just can, which includes has
* Treat transitioning state as playing (not idle) to reduce UI jerking
* Test if device is usable
* Handle ssdp:update messages properly
* Fix _remove_ssdp_callbacks being shared by all DlnaDmrEntity instances
* Fix tests for transitioning state
* Mock DmrDevice.is_profile_device (added to support embedded devices)
* Use ST & NT SSDP headers to find DMR devices, not deviceType
The deviceType is extracted from the device's description XML, and will not
be what we want when dealing with embedded devices.
* Use UDN from SSDP headers, not device description, as unique_id
The SSDP headers have the UDN of the embedded device that we're interested
in, whereas the device description (`ATTR_UPNP_UDN`) field will always be
for the root device.
* Fix DMR string English localization
* Test config flow with UDN from SSDP headers
* Bump async-upnp-client==0.22.1, fix flake8 error
* fix test for remapping
* DMR HA Device connections based on root and embedded UDN
* DmrDevice's UpnpDevice is now named profile_device
* Use device type from SSDP headers, not device description
* Mark dlna_dmr constants as Final
* Use embedded device UDN and type for unique ID when connected via URL
* More informative connection error messages
* Also match SSDP messages on NT headers
The NT header is to ssdp:alive messages what ST is to M-SEARCH responses.
* Bump async-upnp-client==0.22.2
* fix merge
* Bump async-upnp-client==0.22.3
Co-authored-by: Steven Looman <steven.looman@gmail.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-09-27 15:47:01 -05:00
Teemu R
b40d229369
Rework TPLink integration to use python-kasa ( #56701 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Teemu R. <tpr@iki.fi>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-09-27 14:11:55 -05:00
Andre Richter
a5c6a65161
Activate mypy for Vallox ( #55874 )
2021-09-23 10:59:28 -07:00
Joakim Sørensen
98d0c84468
Enable strict typing for the tautulli integration ( #55448 )
2021-09-23 16:56:21 +02:00
jan iversen
34de74d869
Strictly type tradfri config_flow.py ( #56391 )
...
* Strictly type config_flow.py.
* Review comments.
2021-09-21 16:23:10 +02:00
Daniel Hjelseth Høyer
00f7548fa0
Surepetcare, strict typing ( #56425 )
...
* Surepetcare, strict typing
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
* Surepetcare, strict typing
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2021-09-19 20:57:28 +02:00
jan iversen
476d04e2fb
Activate mypy. ( #55965 )
2021-09-18 10:02:24 +01:00
Simone Chemelli
4160a5ee3b
Strict typing for SamsungTV ( #53585 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-09-17 18:51:07 -10:00
jan iversen
94f06f86cf
Activate mypy for gpmdp. ( #55967 )
2021-09-16 20:05:08 +03:00
jan iversen
53d5a59257
Activate mypy for directv ( #55963 )
...
* Activate mypy for directv.
* Activate mypy for directv.
2021-09-15 07:58:04 +02:00
Ricardo Steijn
2a51bb5bba
Add Crownstone integration ( #50677 )
2021-09-14 09:46:52 -10:00
starkillerOG
5f86388f1c
Netgear config flow ( #54479 )
...
* Original work from Quentame
* Small adjustments
* Add properties and method_version
* fix unknown name
* add consider_home functionality
* fix typo
* fix key
* swao setup order
* use formatted mac
* add tracked_list option
* add options flow
* add config flow
* add config flow
* clean up registries
* only remove if no other integration has that device
* tracked_list formatting
* convert tracked list
* add import
* move imports
* use new tracked list on update
* use update_device instead of remove
* add strings
* initialize already known devices
* Update router.py
* Update router.py
* Update router.py
* small fixes
* styling
* fix typing
* fix spelling
* Update router.py
* get model of router
* add router device info
* fix api
* add listeners
* update router device info
* remove method version option
* Update __init__.py
* fix styling
* ignore typing
* remove typing
* fix mypy config
* Update mypy.ini
* add options flow tests
* Update .coveragerc
* fix styling
* Update homeassistant/components/netgear/__init__.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* Update homeassistant/components/netgear/__init__.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* Update homeassistant/components/netgear/__init__.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* Update homeassistant/components/netgear/config_flow.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* Update homeassistant/components/netgear/router.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* add ConfigEntryNotReady
* Update router.py
* use entry.async_on_unload
* Update homeassistant/components/netgear/device_tracker.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* use cv.ensure_list_csv
* add hostname property
* Update device_tracker.py
* fix typo
* fix isort
* add myself to codeowners
* clean config flow
* further clean config flow
* deprecate old netgear discovery
* split out _async_remove_untracked_registries
* Update homeassistant/components/netgear/config_flow.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* Update homeassistant/components/netgear/config_flow.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* cleanup
* fix rename
* fix typo
* remove URL option
* fixes
* add sensor platform
* fixes
* fix removing multiple entities
* remove extra attributes
* initialize sensors correctly
* extra sensors disabled by default
* fix styling and unused imports
* fix tests
* Update .coveragerc
* fix requirements
* remove tracked list
* remove tracked registry editing
* fix styling
* fix discovery test
* simplify unload
* Update homeassistant/components/netgear/router.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* add typing
Co-authored-by: J. Nick Koston <nick@koston.org>
* add typing
Co-authored-by: J. Nick Koston <nick@koston.org>
* add typing
Co-authored-by: J. Nick Koston <nick@koston.org>
* condense NetgearSensorEntities
Co-authored-by: J. Nick Koston <nick@koston.org>
* Update homeassistant/components/netgear/router.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* Update homeassistant/components/netgear/router.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* Update homeassistant/components/netgear/router.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* Update homeassistant/components/netgear/router.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* add typing
* styling
* add typing
* use ForwardRefrence for typing
* Update homeassistant/components/netgear/device_tracker.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* add typing
* Apply suggestions from code review
Thanks!
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* process review comments
* fix styling
* fix devicename not available on all models
* ensure DeviceName is not needed
* Update homeassistant/components/netgear/config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/netgear/config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update __init__.py
* fix styling
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-09-13 18:18:21 +02:00
Aaron Bach
ed9b271fd0
Enforce strict typing for IQVIA ( #53408 )
...
* Enforce strict typing for IQVIA
* Cleanup
* Code review
* Ignore untyped numpy function
2021-09-11 12:27:13 -06:00
jan iversen
9d2861afe3
Add mypy to elkm1. ( #55964 )
2021-09-09 13:14:28 +02:00
Alan Tse
98ecf2888c
Remove tesla integration ( #55988 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-09-08 22:12:03 -07:00
Erik Montnemery
8b436c43f7
Enable basic type checking for cert_expiry ( #55335 )
2021-08-29 10:57:18 -06: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
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
Sean Vig
6b4e3bca6f
Add type annotations to amcrest integration ( #54761 )
...
Co-authored-by: Milan Meulemans <milan.meulemans@live.be>
2021-08-25 13:24:29 +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
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
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
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
jan iversen
20b7125620
Activate mypy for Panasonic_viera ( #54547 )
2021-08-18 15:34:50 +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