python-kasa/kasa
sdb9696 30f217b8ab
Add klap protocol (#509)
* Add support for the new encryption protocol

This adds support for the new TP-Link discovery and encryption
protocols. It is currently incomplete - only devices without
username and password are current supported, and single device
discovery is not implemented.

Discovery should find both old and new devices. When accessing
a device by IP the --klap option can be specified on the command
line to active the new connection protocol.

sdb9696 - This commit also contains 16 later commits from Simon Wilkinson
squashed into the original

* Update klap changes 2023 to fix encryption, deal with kasa credential switching and work with new discovery changes

* Move from aiohttp to httpx

* Changes following review comments

---------

Co-authored-by: Simon Wilkinson <simon@sxw.org.uk>
2023-11-20 14:17:10 +01:00
..
modules Use ruff and ruff format (#534) 2023-10-29 23:15:42 +01:00
tests Add klap protocol (#509) 2023-11-20 14:17:10 +01:00
__init__.py Add klap protocol (#509) 2023-11-20 14:17:10 +01:00
cli.py Add klap protocol (#509) 2023-11-20 14:17:10 +01:00
credentials.py Add plumbing for passing credentials to devices (#507) 2023-09-13 15:46:38 +02:00
discover.py Add klap protocol (#509) 2023-11-20 14:17:10 +01:00
effects.py Add effect support for light strips (#293) 2022-03-21 22:10:12 +01:00
emeterstatus.py Use ruff and ruff format (#534) 2023-10-29 23:15:42 +01:00
exceptions.py Add plumbing for passing credentials to devices (#507) 2023-09-13 15:46:38 +02:00
json.py Use orjson when already installed or with speedups extra (#466) 2023-06-18 01:03:04 +02:00
klapprotocol.py Add klap protocol (#509) 2023-11-20 14:17:10 +01:00
protocol.py Add klap protocol (#509) 2023-11-20 14:17:10 +01:00
py.typed Add py.typed to flag that the package is typed (#251) 2021-11-15 18:21:24 +01:00
smartbulb.py Use ruff and ruff format (#534) 2023-10-29 23:15:42 +01:00
smartdevice.py Add klap protocol (#509) 2023-11-20 14:17:10 +01:00
smartdimmer.py Use ruff and ruff format (#534) 2023-10-29 23:15:42 +01:00
smartlightstrip.py Use ruff and ruff format (#534) 2023-10-29 23:15:42 +01:00
smartplug.py Use ruff and ruff format (#534) 2023-10-29 23:15:42 +01:00
smartstrip.py Use ruff and ruff format (#534) 2023-10-29 23:15:42 +01:00