From c04438caaee1f619163526ba1563e1e6f36ae949 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Sun, 10 Mar 2024 10:50:32 +0100 Subject: [PATCH] Remove entity description mixin in Freebox (#112766) --- homeassistant/components/freebox/button.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/homeassistant/components/freebox/button.py b/homeassistant/components/freebox/button.py index 046003b209d..79e3c98b8b7 100644 --- a/homeassistant/components/freebox/button.py +++ b/homeassistant/components/freebox/button.py @@ -19,20 +19,13 @@ from .const import DOMAIN from .router import FreeboxRouter -@dataclass(frozen=True) -class FreeboxButtonRequiredKeysMixin: - """Mixin for required keys.""" +@dataclass(frozen=True, kw_only=True) +class FreeboxButtonEntityDescription(ButtonEntityDescription): + """Class describing Freebox button entities.""" async_press: Callable[[FreeboxRouter], Awaitable] -@dataclass(frozen=True) -class FreeboxButtonEntityDescription( - ButtonEntityDescription, FreeboxButtonRequiredKeysMixin -): - """Class describing Freebox button entities.""" - - BUTTON_DESCRIPTIONS: tuple[FreeboxButtonEntityDescription, ...] = ( FreeboxButtonEntityDescription( key="reboot",