python-kasa/kasa/smart/modules
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
..
__init__.py Add temperature control module for smart (#848) 2024-04-22 12:39:07 +01:00
alarmmodule.py Implement action feature (#849) 2024-04-23 19:49:04 +02:00
autooffmodule.py Enable and convert to future annotations (#838) 2024-04-17 15:39:24 +02:00
battery.py Enable and convert to future annotations (#838) 2024-04-17 15:39:24 +02:00
brightness.py Implement feature categories (#846) 2024-04-23 19:20:12 +02:00
childdevicemodule.py Revise device initialization and subsequent updates (#807) 2024-03-15 17:18:13 +01:00
cloudmodule.py Better firmware module support for devices not connected to the internet (#854) 2024-04-23 13:56:32 +02:00
colormodule.py Add ColorModule for smart devices (#840) 2024-04-20 17:18:35 +02:00
colortemp.py Implement feature categories (#846) 2024-04-23 19:20:12 +02:00
devicemodule.py Enable and convert to future annotations (#838) 2024-04-17 15:39:24 +02:00
energymodule.py Add support for feature units (#843) 2024-04-22 10:25:30 +01:00
fanmodule.py Implement feature categories (#846) 2024-04-23 19:20:12 +02:00
firmware.py Better firmware module support for devices not connected to the internet (#854) 2024-04-23 13:56:32 +02:00
humidity.py Enable and convert to future annotations (#838) 2024-04-17 15:39:24 +02:00
ledmodule.py Implement feature categories (#846) 2024-04-23 19:20:12 +02:00
lighttransitionmodule.py Enable and convert to future annotations (#838) 2024-04-17 15:39:24 +02:00
reportmodule.py Implement feature categories (#846) 2024-04-23 19:20:12 +02:00
temperature.py Add support for KH100 hub (#847) 2024-04-22 16:24:15 +02:00
temperaturecontrol.py Add support for KH100 hub (#847) 2024-04-22 16:24:15 +02:00
timemodule.py Implement feature categories (#846) 2024-04-23 19:20:12 +02:00