Add Control.DATA for static announce data

This commit is contained in:
Edward Brown 2025-11-23 11:54:24 +00:00
parent 9fe9db547e
commit 70afdf1857
8 changed files with 40 additions and 25 deletions

View file

@ -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()