python-kasa/kasa
Teemu R 3926f3224f Add module support & query their information during update cycle (#243)
* Add module support & modularize existing query

This creates a base to expose more features on the supported devices.
At the moment, the most visible change is that each update cycle gets information from all available modules:
* Basic system info
* Cloud (new)
* Countdown (new)
* Antitheft (new)
* Schedule (new)
* Time (existing, implements the time/timezone handling)
* Emeter (existing, partially separated from smartdevice)

* Fix imports

* Fix linting

* Use device host instead of alias in module repr

* Add property to list available modules, print them in cli state report

* usage: fix the get_realtime query

* separate usage from schedule to avoid multi-inheritance

* Fix module querying

* Add is_supported property to modules
2022-04-05 19:27:46 +02:00
..
modules Add module support & query their information during update cycle (#243) 2022-04-05 19:27:46 +02:00
tests Ensure bulb state is restored when turning back on (#330) 2022-04-05 18:51:36 +02:00
__init__.py Improve emeterstatus API, move into own module (#205) 2021-09-23 17:58:19 +02:00
cli.py Add module support & query their information during update cycle (#243) 2022-04-05 19:27:46 +02:00
discover.py Do not crash on discovery on WSL (#283) 2022-01-08 17:48:01 +01:00
effects.py Add effect support for light strips (#293) 2022-03-21 22:10:12 +01:00
emeterstatus.py Improve emeterstatus API, move into own module (#205) 2021-09-23 17:58:19 +02:00
exceptions.py Add retries to protocol queries (#65) 2020-05-27 20:02:09 +03:00
protocol.py Fix unsafe __del__ in TPLinkSmartHomeProtocol (#300) 2022-01-30 23:00:00 +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 module support & query their information during update cycle (#243) 2022-04-05 19:27:46 +02:00
smartdevice.py Add module support & query their information during update cycle (#243) 2022-04-05 19:27:46 +02:00
smartdimmer.py Add --transition to bulb-specific cli commands, fix turn_{on,off} signatures (#81) 2020-07-06 16:10:28 +02:00
smartlightstrip.py Add effect support for light strips (#293) 2022-03-21 22:10:12 +01:00
smartplug.py Add module support & query their information during update cycle (#243) 2022-04-05 19:27:46 +02:00
smartstrip.py Add module support & query their information during update cycle (#243) 2022-04-05 19:27:46 +02:00