-
- Downloads
Add authentication to tplink integration for newer devices (#105143)
* Add authentication flows to tplink integration to enable newer device protocol support * Add websession passing to tplink integration discover methods * Use SmartDevice.connect() * Update to use DeviceConfig * Use credential hashes * Bump python-kasa to 0.6.0.dev0 * Fix tests and address review comments * Add autodetection for L530, P110, and L900 This adds mac address prefixes for the devices I have. The wildcards are left quite lax assuming different series may share the same prefix. * Bump tplink to 0.6.0.dev1 * Add config flow tests * Use short_mac if alias is None and try legacy connect on discovery timeout * Add config_flow tests * Add init tests * Migrate to aiohttp * add some more ouis * final * ip change fix * add fixmes * fix O(n) searching * fix O(n) searching * move code that cannot fail outside of try block * fix missing reauth_successful string * add doc strings, cleanups * error message by password * dry * adjust discovery timeout * integration discovery already formats mac * tweaks * cleanups * cleanups * Update post review and fix broken tests * Fix TODOs and FIXMEs in test_config_flow * Add pragma no cover * bump, apply suggestions * remove no cover * use iden check * Apply suggestions from code review * Fix branched test and update integration title * legacy typing * Update homeassistant/components/tplink/__init__.py * lint * Remove more unused consts * Update test docstrings * Add sdb9696 to tplink codeowners * Update docstring on test for invalid DeviceConfig * Update test stored credentials test --------- Co-authored-by:Teemu Rytilahti <tpr@iki.fi> Co-authored-by:
J. Nick Koston <nick@koston.org>
Showing
- CODEOWNERS 2 additions, 2 deletionsCODEOWNERS
- homeassistant/components/tplink/__init__.py 115 additions, 10 deletionshomeassistant/components/tplink/__init__.py
- homeassistant/components/tplink/config_flow.py 305 additions, 25 deletionshomeassistant/components/tplink/config_flow.py
- homeassistant/components/tplink/const.py 4 additions, 5 deletionshomeassistant/components/tplink/const.py
- homeassistant/components/tplink/manifest.json 31 additions, 3 deletionshomeassistant/components/tplink/manifest.json
- homeassistant/components/tplink/strings.json 30 additions, 1 deletionhomeassistant/components/tplink/strings.json
- homeassistant/components/tplink/switch.py 4 additions, 2 deletionshomeassistant/components/tplink/switch.py
- homeassistant/generated/dhcp.py 35 additions, 0 deletionshomeassistant/generated/dhcp.py
- homeassistant/generated/integrations.json 1 addition, 1 deletionhomeassistant/generated/integrations.json
- requirements_all.txt 1 addition, 1 deletionrequirements_all.txt
- requirements_test_all.txt 1 addition, 1 deletionrequirements_test_all.txt
- tests/components/tplink/__init__.py 93 additions, 6 deletionstests/components/tplink/__init__.py
- tests/components/tplink/conftest.py 114 additions, 5 deletionstests/components/tplink/conftest.py
- tests/components/tplink/test_config_flow.py 769 additions, 61 deletionstests/components/tplink/test_config_flow.py
- tests/components/tplink/test_init.py 129 additions, 8 deletionstests/components/tplink/test_init.py
- tests/components/tplink/test_light.py 15 additions, 12 deletionstests/components/tplink/test_light.py
- tests/components/tplink/test_sensor.py 5 additions, 11 deletionstests/components/tplink/test_sensor.py
- tests/components/tplink/test_switch.py 7 additions, 7 deletionstests/components/tplink/test_switch.py
Loading
Please register or sign in to comment