python-kasa/kasa
J. Nick Koston aed67dad16
Fix connection indeterminate state on cancellation (#636)
* Fix connection indeterminate state on cancellation

If the task the query is running in it cancelled, we do
know the state of the connection so we must close. Previously
we would not close on BaseException which could result
in reading the previous response if the previous query was
cancelled after the request had been sent

* add test for cancellation
2024-01-13 18:37:24 +01:00
..
modules Avoid linear search for emeter realtime and emeter_today (#622) 2024-01-05 02:01:00 +01:00
tapo Return alias as None for new discovery devices before update (#627) 2024-01-11 16:12:02 +01:00
tests Fix connection indeterminate state on cancellation (#636) 2024-01-13 18:37:24 +01:00
__init__.py Raise TimeoutException on discover_single timeout (#632) 2024-01-11 16:13:44 +01:00
aestransport.py Fix cli discover bug with None username/password (#615) 2024-01-04 19:17:48 +01:00
cli.py Improve test coverage (#625) 2024-01-10 20:37:43 +01:00
credentials.py Cleanup credentials handling (#605) 2024-01-03 19:26:52 +01:00
device_factory.py Get child emeters with CLI (#623) 2024-01-05 02:25:24 +01:00
device_type.py Add support for tapo bulbs (#558) 2023-12-05 20:07:10 +01:00
deviceconfig.py Update config to_dict to exclude credentials if the hash is empty string (#626) 2024-01-10 20:47:30 +01:00
discover.py Raise TimeoutException on discover_single timeout (#632) 2024-01-11 16:13:44 +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 Cleanup credentials handling (#605) 2024-01-03 19:26:52 +01:00
iotprotocol.py Add DeviceConfig to allow specifying configuration parameters (#569) 2023-12-29 20:17:15 +01:00
json.py Use orjson when already installed or with speedups extra (#466) 2023-06-18 01:03:04 +02:00
klaptransport.py Fix cli discover bug with None username/password (#615) 2024-01-04 19:17:48 +01:00
protocol.py Fix connection indeterminate state on cancellation (#636) 2024-01-13 18:37:24 +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 Add DeviceConfig to allow specifying configuration parameters (#569) 2023-12-29 20:17:15 +01:00
smartdevice.py Return alias as None for new discovery devices before update (#627) 2024-01-11 16:12:02 +01:00
smartdimmer.py Add DeviceConfig to allow specifying configuration parameters (#569) 2023-12-29 20:17:15 +01:00
smartlightstrip.py Add DeviceConfig to allow specifying configuration parameters (#569) 2023-12-29 20:17:15 +01:00
smartplug.py Add DeviceConfig to allow specifying configuration parameters (#569) 2023-12-29 20:17:15 +01:00
smartprotocol.py Add DeviceConfig to allow specifying configuration parameters (#569) 2023-12-29 20:17:15 +01:00
smartstrip.py Add DeviceConfig to allow specifying configuration parameters (#569) 2023-12-29 20:17:15 +01:00