mirror of
https://github.com/fmtr/haco.git
synced 2026-12-05 14:20:02 -05:00
20 lines
397 B
Python
20 lines
397 B
Python
from dataclasses import dataclass
|
|
|
|
from haco.control import Control
|
|
from haco.utils import ConvertersString
|
|
|
|
|
|
@dataclass(kw_only=True)
|
|
class Select(Control):
|
|
DATA = dict(
|
|
platform='select'
|
|
)
|
|
converters = ConvertersString
|
|
|
|
options: list[str]
|
|
|
|
def command(self, value):
|
|
raise NotImplementedError()
|
|
|
|
def state(self, value):
|
|
raise NotImplementedError()
|