From bfd9199ad99598f2c1146e91bb7d6983e8b11bde Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Fri, 8 Mar 2024 23:29:02 +0100 Subject: [PATCH] Remove entity description mixin in HomeKit Device (#112775) --- .../components/homekit_controller/select.py | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/homeassistant/components/homekit_controller/select.py b/homeassistant/components/homekit_controller/select.py index 6ae42a69940..f672f293122 100644 --- a/homeassistant/components/homekit_controller/select.py +++ b/homeassistant/components/homekit_controller/select.py @@ -23,19 +23,11 @@ from .connection import HKDevice from .entity import CharacteristicEntity -@dataclass(frozen=True) -class HomeKitSelectEntityDescriptionRequired: - """Required fields for HomeKitSelectEntityDescription.""" - - choices: dict[str, IntEnum] - - -@dataclass(frozen=True) -class HomeKitSelectEntityDescription( - SelectEntityDescription, HomeKitSelectEntityDescriptionRequired -): +@dataclass(frozen=True, kw_only=True) +class HomeKitSelectEntityDescription(SelectEntityDescription): """A generic description of a select entity backed by a single characteristic.""" + choices: dict[str, IntEnum] name: str | None = None