From 59eac48e33f1c3e938044078df2e2a08010cf73e Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Tue, 5 Mar 2024 18:14:41 +0100 Subject: [PATCH] Remove entity description mixin in Bosch SHC (#112394) --- homeassistant/components/bosch_shc/switch.py | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/homeassistant/components/bosch_shc/switch.py b/homeassistant/components/bosch_shc/switch.py index 8e542c860d4..a6eee973206 100644 --- a/homeassistant/components/bosch_shc/switch.py +++ b/homeassistant/components/bosch_shc/switch.py @@ -29,23 +29,15 @@ from .const import DATA_SESSION, DOMAIN from .entity import SHCEntity -@dataclass(frozen=True) -class SHCSwitchRequiredKeysMixin: - """Mixin for SHC switch required keys.""" +@dataclass(frozen=True, kw_only=True) +class SHCSwitchEntityDescription(SwitchEntityDescription): + """Class describing SHC switch entities.""" on_key: str on_value: StateType should_poll: bool -@dataclass(frozen=True) -class SHCSwitchEntityDescription( - SwitchEntityDescription, - SHCSwitchRequiredKeysMixin, -): - """Class describing SHC switch entities.""" - - SWITCH_TYPES: dict[str, SHCSwitchEntityDescription] = { "smartplug": SHCSwitchEntityDescription( key="smartplug",