mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +00:00
Remove entity description mixin in HomeKit Device (#112775)
This commit is contained in:
parent
6671a84661
commit
bfd9199ad9
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user