From b9ef27799b1404e3a8b1622a8e11b77876b46295 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Tue, 5 Mar 2024 18:12:10 +0100 Subject: [PATCH] Remove entity description mixin in Bond (#112393) --- homeassistant/components/bond/button.py | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/homeassistant/components/bond/button.py b/homeassistant/components/bond/button.py index 273ef837f6e..b90727100bd 100644 --- a/homeassistant/components/bond/button.py +++ b/homeassistant/components/bond/button.py @@ -21,23 +21,15 @@ from .utils import BondDevice, BondHub STEP_SIZE = 10 -@dataclass(frozen=True) -class BondButtonEntityDescriptionMixin: - """Mixin to describe a Bond Button entity.""" - - mutually_exclusive: Action | None - argument: int | None - - -@dataclass(frozen=True) -class BondButtonEntityDescription( - ButtonEntityDescription, BondButtonEntityDescriptionMixin -): +@dataclass(frozen=True, kw_only=True) +class BondButtonEntityDescription(ButtonEntityDescription): """Class to describe a Bond Button entity.""" # BondEntity does not support UNDEFINED, # restrict the type to str | None name: str | None = None + mutually_exclusive: Action | None + argument: int | None STOP_BUTTON = BondButtonEntityDescription(