python-kasa/kasa
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
..
iot Implement feature categories (#846) 2024-04-23 19:20:12 +02:00
smart Implement action feature (#849) 2024-04-23 19:49:04 +02:00
tests 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
aestransport.py Enable and convert to future annotations (#838) 2024-04-17 15:39:24 +02:00
bulb.py Enable and convert to future annotations (#838) 2024-04-17 15:39:24 +02:00
cli.py Implement feature categories (#846) 2024-04-23 19:20:12 +02:00
credentials.py Cleanup credentials handling (#605) 2024-01-03 19:26:52 +01:00
device_factory.py Add support for KH100 hub (#847) 2024-04-22 16:24:15 +02:00
device_type.py Add temperature control module for smart (#848) 2024-04-22 12:39:07 +01:00
device.py Implement feature categories (#846) 2024-04-23 19:20:12 +02:00
deviceconfig.py Add support for KH100 hub (#847) 2024-04-22 16:24:15 +02:00
discover.py Enable and convert to future annotations (#838) 2024-04-17 15:39:24 +02:00
effects.py Enable and convert to future annotations (#838) 2024-04-17 15:39:24 +02:00
emeterstatus.py Enable and convert to future annotations (#838) 2024-04-17 15:39:24 +02:00
exceptions.py Enable and convert to future annotations (#838) 2024-04-17 15:39:24 +02:00
feature.py Implement action feature (#849) 2024-04-23 19:49:04 +02:00
httpclient.py Enable and convert to future annotations (#838) 2024-04-17 15:39:24 +02:00
iotprotocol.py Enable and convert to future annotations (#838) 2024-04-17 15:39:24 +02:00
json.py Generate AES KeyPair lazily (#687) 2024-01-23 15:29:27 +00:00
klaptransport.py Enable and convert to future annotations (#838) 2024-04-17 15:39:24 +02:00
module.py Enable and convert to future annotations (#838) 2024-04-17 15:39:24 +02:00
plug.py Update poetry locks and pre-commit hooks (#837) 2024-04-16 20:21:20 +02:00
protocol.py Enable and convert to future annotations (#838) 2024-04-17 15:39:24 +02:00
py.typed Add py.typed to flag that the package is typed (#251) 2021-11-15 18:21:24 +01:00
smartprotocol.py Re-query missing responses after multi request errors (#850) 2024-04-20 17:24:49 +02:00
xortransport.py Enable and convert to future annotations (#838) 2024-04-17 15:39:24 +02:00