mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Remove entity description mixin in Bosch SHC (#112394)
This commit is contained in:
parent
b9ef27799b
commit
59eac48e33
@ -29,23 +29,15 @@ from .const import DATA_SESSION, DOMAIN
|
|||||||
from .entity import SHCEntity
|
from .entity import SHCEntity
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class SHCSwitchRequiredKeysMixin:
|
class SHCSwitchEntityDescription(SwitchEntityDescription):
|
||||||
"""Mixin for SHC switch required keys."""
|
"""Class describing SHC switch entities."""
|
||||||
|
|
||||||
on_key: str
|
on_key: str
|
||||||
on_value: StateType
|
on_value: StateType
|
||||||
should_poll: bool
|
should_poll: bool
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
|
||||||
class SHCSwitchEntityDescription(
|
|
||||||
SwitchEntityDescription,
|
|
||||||
SHCSwitchRequiredKeysMixin,
|
|
||||||
):
|
|
||||||
"""Class describing SHC switch entities."""
|
|
||||||
|
|
||||||
|
|
||||||
SWITCH_TYPES: dict[str, SHCSwitchEntityDescription] = {
|
SWITCH_TYPES: dict[str, SHCSwitchEntityDescription] = {
|
||||||
"smartplug": SHCSwitchEntityDescription(
|
"smartplug": SHCSwitchEntityDescription(
|
||||||
key="smartplug",
|
key="smartplug",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user