mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +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
|
from .entity import FullyKioskEntity
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class FullyButtonEntityDescriptionMixin:
|
class FullyButtonEntityDescription(ButtonEntityDescription):
|
||||||
"""Mixin to describe a Fully Kiosk Browser button entity."""
|
"""Fully Kiosk Browser button description."""
|
||||||
|
|
||||||
press_action: Callable[[FullyKiosk], Any]
|
press_action: Callable[[FullyKiosk], Any]
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
|
||||||
class FullyButtonEntityDescription(
|
|
||||||
ButtonEntityDescription, FullyButtonEntityDescriptionMixin
|
|
||||||
):
|
|
||||||
"""Fully Kiosk Browser button description."""
|
|
||||||
|
|
||||||
|
|
||||||
BUTTONS: tuple[FullyButtonEntityDescription, ...] = (
|
BUTTONS: tuple[FullyButtonEntityDescription, ...] = (
|
||||||
FullyButtonEntityDescription(
|
FullyButtonEntityDescription(
|
||||||
key="restartApp",
|
key="restartApp",
|
||||||
|
@ -19,9 +19,9 @@ from .coordinator import FullyKioskDataUpdateCoordinator
|
|||||||
from .entity import FullyKioskEntity
|
from .entity import FullyKioskEntity
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class FullySwitchEntityDescriptionMixin:
|
class FullySwitchEntityDescription(SwitchEntityDescription):
|
||||||
"""Fully Kiosk Browser switch entity description mixin."""
|
"""Fully Kiosk Browser switch entity description."""
|
||||||
|
|
||||||
on_action: Callable[[FullyKiosk], Any]
|
on_action: Callable[[FullyKiosk], Any]
|
||||||
off_action: Callable[[FullyKiosk], Any]
|
off_action: Callable[[FullyKiosk], Any]
|
||||||
@ -30,13 +30,6 @@ class FullySwitchEntityDescriptionMixin:
|
|||||||
mqtt_off_event: str | None
|
mqtt_off_event: str | None
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
|
||||||
class FullySwitchEntityDescription(
|
|
||||||
SwitchEntityDescription, FullySwitchEntityDescriptionMixin
|
|
||||||
):
|
|
||||||
"""Fully Kiosk Browser switch entity description."""
|
|
||||||
|
|
||||||
|
|
||||||
SWITCHES: tuple[FullySwitchEntityDescription, ...] = (
|
SWITCHES: tuple[FullySwitchEntityDescription, ...] = (
|
||||||
FullySwitchEntityDescription(
|
FullySwitchEntityDescription(
|
||||||
key="screensaver",
|
key="screensaver",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user