Remove entity description mixin in HomeKit Device (#112775)

This commit is contained in:
Joost Lekkerkerker 2024-03-08 23:29:02 +01:00 committed by GitHub
parent 6671a84661
commit bfd9199ad9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,19 +23,11 @@ from .connection import HKDevice
from .entity import CharacteristicEntity from .entity import CharacteristicEntity
@dataclass(frozen=True) @dataclass(frozen=True, kw_only=True)
class HomeKitSelectEntityDescriptionRequired: class HomeKitSelectEntityDescription(SelectEntityDescription):
"""Required fields for HomeKitSelectEntityDescription."""
choices: dict[str, IntEnum]
@dataclass(frozen=True)
class HomeKitSelectEntityDescription(
SelectEntityDescription, HomeKitSelectEntityDescriptionRequired
):
"""A generic description of a select entity backed by a single characteristic.""" """A generic description of a select entity backed by a single characteristic."""
choices: dict[str, IntEnum]
name: str | None = None name: str | None = None