python-kasa/kasa/cli
Steven B. 296af3192e
Handle KeyboardInterrupts in the cli better (#1391)
Addresses an issue with how `asyncclick` deals with `KeyboardInterrupt`
errors. Instead of the `click.main` receiving `KeyboardInterrupt` it
receives `CancelledError` because it's a task running inside the loop.

Also ensures that discovery catches the `CancelledError` and closes the
http clients.
2024-12-20 14:21:38 +01:00
..
__init__.py Structure cli into a package (#1038) 2024-07-04 14:52:01 +02:00
__main__.py Split out main cli module into lazily loaded submodules (#1039) 2024-07-23 19:13:52 +01:00
common.py Handle KeyboardInterrupts in the cli better (#1391) 2024-12-20 14:21:38 +01:00
device.py Use DeviceInfo consistently across devices (#1338) 2024-12-13 12:37:13 +00:00
discover.py cli: print model, https, and lv for discover list (#1339) 2024-12-17 21:09:17 +01:00
feature.py Update cli feature command for actions not to require a value (#1264) 2024-11-15 14:38:41 +00:00
lazygroup.py Enable ruff check for ANN (#1139) 2024-11-10 18:55:13 +00:00
light.py Update cli, light modules, and docs to use FeatureAttributes (#1364) 2024-12-11 15:53:35 +00:00
main.py Add ssltransport for robovacs (#943) 2024-12-01 18:06:48 +01:00
schedule.py Enable ruff check for ANN (#1139) 2024-11-10 18:55:13 +00:00
time.py Remove support for python <3.11 (#1273) 2024-11-18 18:46:36 +00:00
usage.py Expose energy command to cli (#1307) 2024-11-26 09:42:55 +00:00
wifi.py Enable ruff check for ANN (#1139) 2024-11-10 18:55:13 +00:00