mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Remove entity description mixin in Fully Kiosk (#112768)
This commit is contained in:
parent
af6f2a516e
commit
945710874b
@ -23,20 +23,13 @@ from .coordinator import FullyKioskDataUpdateCoordinator
|
||||
from .entity import FullyKioskEntity
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class FullyButtonEntityDescriptionMixin:
|
||||
"""Mixin to describe a Fully Kiosk Browser button entity."""
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class FullyButtonEntityDescription(ButtonEntityDescription):
|
||||
"""Fully Kiosk Browser button description."""
|
||||
|
||||
press_action: Callable[[FullyKiosk], Any]
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class FullyButtonEntityDescription(
|
||||
ButtonEntityDescription, FullyButtonEntityDescriptionMixin
|
||||
):
|
||||
"""Fully Kiosk Browser button description."""
|
||||
|
||||
|
||||
BUTTONS: tuple[FullyButtonEntityDescription, ...] = (
|
||||
FullyButtonEntityDescription(
|
||||
key="restartApp",
|
||||
|
@ -19,9 +19,9 @@ from .coordinator import FullyKioskDataUpdateCoordinator
|
||||
from .entity import FullyKioskEntity
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class FullySwitchEntityDescriptionMixin:
|
||||
"""Fully Kiosk Browser switch entity description mixin."""
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class FullySwitchEntityDescription(SwitchEntityDescription):
|
||||
"""Fully Kiosk Browser switch entity description."""
|
||||
|
||||
on_action: Callable[[FullyKiosk], Any]
|
||||
off_action: Callable[[FullyKiosk], Any]
|
||||
@ -30,13 +30,6 @@ class FullySwitchEntityDescriptionMixin:
|
||||
mqtt_off_event: str | None
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class FullySwitchEntityDescription(
|
||||
SwitchEntityDescription, FullySwitchEntityDescriptionMixin
|
||||
):
|
||||
"""Fully Kiosk Browser switch entity description."""
|
||||
|
||||
|
||||
SWITCHES: tuple[FullySwitchEntityDescription, ...] = (
|
||||
FullySwitchEntityDescription(
|
||||
key="screensaver",
|
||||
|
Loading…
x
Reference in New Issue
Block a user