mirror of
https://github.com/fmtr/haco.git
synced 2026-12-05 14:20:02 -05:00
Implement per-control/capability state/command datatype converters
This commit is contained in:
parent
1604e2447e
commit
879bc347f8
5 changed files with 39 additions and 13 deletions
|
|
@ -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]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue