mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 08:17: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
|
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
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user