mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
Implement choice feature type (#880)
Implement the choice feature type allowing to provide a list of choices that can be set. Co-authored-by: sdb9696
This commit is contained in:
@@ -40,6 +40,12 @@ class Module(ABC):
|
||||
def data(self):
|
||||
"""Return the module specific raw data from the last update."""
|
||||
|
||||
def _initialize_features(self): # noqa: B027
|
||||
"""Initialize features after the initial update.
|
||||
|
||||
This can be implemented if features depend on module query responses.
|
||||
"""
|
||||
|
||||
def _add_feature(self, feature: Feature):
|
||||
"""Add module feature."""
|
||||
|
||||
|
Reference in New Issue
Block a user