mirror of
https://github.com/fmtr/haco.git
synced 2026-12-05 06:10:08 -05:00
Add Control.DATA for static announce data
This commit is contained in:
parent
9fe9db547e
commit
70afdf1857
8 changed files with 40 additions and 25 deletions
|
|
@ -1,12 +1,14 @@
|
|||
from dataclasses import dataclass
|
||||
from typing import Literal
|
||||
|
||||
from control import Control
|
||||
|
||||
|
||||
@dataclass(kw_only=True)
|
||||
class Switch(Control):
|
||||
platform: Literal["climate"] = "switch"
|
||||
DATA = dict(
|
||||
platform='switch'
|
||||
)
|
||||
|
||||
|
||||
def command(self, value):
|
||||
raise NotImplementedError()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue