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:
Teemu R
2024-04-30 08:56:09 +02:00
committed by GitHub
parent d3544b4989
commit 300d823895
7 changed files with 98 additions and 18 deletions

View File

@@ -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."""