mirror of
https://github.com/Andre0512/hon.git
synced 2026-07-03 21:55:30 +02:00
Merge branch 'Andre0512:main' into main
This commit is contained in:
@@ -18,7 +18,7 @@ from .hon import HonEntity, unique_entities
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@dataclass
|
||||
@dataclass(frozen=True)
|
||||
class HonControlSwitchEntityDescription(SwitchEntityDescription):
|
||||
turn_on_key: str = ""
|
||||
turn_off_key: str = ""
|
||||
@@ -28,11 +28,12 @@ class HonControlSwitchEntityDescription(SwitchEntityDescription):
|
||||
to_sync: bool = False
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class HonSwitchEntityDescription(SwitchEntityDescription):
|
||||
pass
|
||||
|
||||
|
||||
@dataclass
|
||||
@dataclass(frozen=True)
|
||||
class HonConfigSwitchEntityDescription(SwitchEntityDescription):
|
||||
entity_category: EntityCategory = EntityCategory.CONFIG
|
||||
|
||||
|
||||
Reference in New Issue
Block a user