mirror of
https://github.com/fmtr/haco.git
synced 2026-10-26 19:01:51 -04:00
20 lines
397 B
Python
20 lines
397 B
Python
from dataclasses import dataclass
|
|
|
|
from haco.capabilities import Capability
|
|
from haco.control import Control
|
|
|
|
|
|
@dataclass(kw_only=True)
|
|
class Button(Control):
|
|
DATA = dict(
|
|
platform='button'
|
|
)
|
|
|
|
def command(self, value):
|
|
raise NotImplementedError()
|
|
|
|
@classmethod
|
|
def get_capabilities(cls):
|
|
return [
|
|
Capability(name=None, state=None)
|
|
]
|