mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-23 03:33:35 +00:00
64da736717
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. |
||
---|---|---|
.. | ||
__init__.py | ||
ambientlight.py | ||
antitheft.py | ||
cloud.py | ||
countdown.py | ||
emeter.py | ||
module.py | ||
motion.py | ||
rulemodule.py | ||
schedule.py | ||
time.py | ||
usage.py |