python-kasa/kasa/iot/modules
Teemu R 64da736717
Add generic interface for accessing device features (#741)
This adds a generic interface for all device classes to introspect available device features,
that is necessary to make it easier to support a wide variety of supported devices with different set of features.
This will allow constructing generic interfaces (e.g., in homeassistant) that fetch and change these features without hard-coding the API calls.

`Device.features()` now returns a mapping of `<identifier, Feature>` where the `Feature` contains all necessary information (like the name, the icon, a way to get and change the setting) to present and change the defined feature through its interface.
2024-02-15 16:25:08 +01:00
..
__init__.py Refactor devices into subpackages and deprecate old names (#716) 2024-02-04 16:20:08 +01:00
ambientlight.py Refactor devices into subpackages and deprecate old names (#716) 2024-02-04 16:20:08 +01:00
antitheft.py Refactor devices into subpackages and deprecate old names (#716) 2024-02-04 16:20:08 +01:00
cloud.py Add generic interface for accessing device features (#741) 2024-02-15 16:25:08 +01:00
countdown.py Refactor devices into subpackages and deprecate old names (#716) 2024-02-04 16:20:08 +01:00
emeter.py Refactor devices into subpackages and deprecate old names (#716) 2024-02-04 16:20:08 +01:00
module.py Add generic interface for accessing device features (#741) 2024-02-15 16:25:08 +01:00
motion.py Refactor devices into subpackages and deprecate old names (#716) 2024-02-04 16:20:08 +01:00
rulemodule.py Refactor devices into subpackages and deprecate old names (#716) 2024-02-04 16:20:08 +01:00
schedule.py Refactor devices into subpackages and deprecate old names (#716) 2024-02-04 16:20:08 +01:00
time.py Refactor devices into subpackages and deprecate old names (#716) 2024-02-04 16:20:08 +01:00
usage.py Refactor devices into subpackages and deprecate old names (#716) 2024-02-04 16:20:08 +01:00