python-kasa/kasa/smart
Teemu R 6e5cae1f47
Implement action feature (#849)
Adds `FeatureType.Action` making it possible to expose features like
"reboot", "test alarm", "pair" etc.

The `attribute_getter` is no longer mandatory, but it will raise an
exception if not defined for other types than actions.
Trying to read returns a static string `<Action>`.
This overloads the `set_value` to call the given callable on any value.

This also fixes the `play` and `stop` coroutines of the alarm module to
await the call.
2024-04-23 19:49:04 +02:00
..
modules Implement action feature (#849) 2024-04-23 19:49:04 +02:00
__init__.py Update poetry locks and pre-commit hooks (#837) 2024-04-16 20:21:20 +02:00
smartbulb.py Use brightness module for smartbulb (#853) 2024-04-20 20:29:07 +02:00
smartchilddevice.py Add temperature control module for smart (#848) 2024-04-22 12:39:07 +01:00
smartdevice.py Implement feature categories (#846) 2024-04-23 19:20:12 +02:00
smartmodule.py Add ColorModule for smart devices (#840) 2024-04-20 17:18:35 +02:00