Implement per-control/capability state/command datatype converters

This commit is contained in:
Edward Brown 2025-11-25 12:30:35 +00:00
parent 1604e2447e
commit 879bc347f8
5 changed files with 39 additions and 13 deletions

View file

@ -1,6 +1,7 @@
from dataclasses import dataclass
from haco.control import Control
from haco.utils import ConvertersString
@dataclass(kw_only=True)
@ -8,6 +9,7 @@ class Select(Control):
DATA = dict(
platform='select'
)
converters = ConvertersString
options: list[str]