mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Remove entity description mixin in Freebox (#112766)
This commit is contained in:
parent
e91a38eede
commit
c04438caae
@ -19,20 +19,13 @@ from .const import DOMAIN
|
|||||||
from .router import FreeboxRouter
|
from .router import FreeboxRouter
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class FreeboxButtonRequiredKeysMixin:
|
class FreeboxButtonEntityDescription(ButtonEntityDescription):
|
||||||
"""Mixin for required keys."""
|
"""Class describing Freebox button entities."""
|
||||||
|
|
||||||
async_press: Callable[[FreeboxRouter], Awaitable]
|
async_press: Callable[[FreeboxRouter], Awaitable]
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
|
||||||
class FreeboxButtonEntityDescription(
|
|
||||||
ButtonEntityDescription, FreeboxButtonRequiredKeysMixin
|
|
||||||
):
|
|
||||||
"""Class describing Freebox button entities."""
|
|
||||||
|
|
||||||
|
|
||||||
BUTTON_DESCRIPTIONS: tuple[FreeboxButtonEntityDescription, ...] = (
|
BUTTON_DESCRIPTIONS: tuple[FreeboxButtonEntityDescription, ...] = (
|
||||||
FreeboxButtonEntityDescription(
|
FreeboxButtonEntityDescription(
|
||||||
key="reboot",
|
key="reboot",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user