mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Remove entity description mixin in Dormakaba dKey (#112401)
This commit is contained in:
parent
4d82ea516a
commit
8e2de51710
@ -22,20 +22,13 @@ from .entity import DormakabaDkeyEntity
|
||||
from .models import DormakabaDkeyData
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class DormakabaDkeyBinarySensorDescriptionMixin:
|
||||
"""Class for keys required by Dormakaba dKey binary sensor entity."""
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class DormakabaDkeyBinarySensorDescription(BinarySensorEntityDescription):
|
||||
"""Describes Dormakaba dKey binary sensor entity."""
|
||||
|
||||
is_on: Callable[[Notifications], bool]
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class DormakabaDkeyBinarySensorDescription(
|
||||
BinarySensorEntityDescription, DormakabaDkeyBinarySensorDescriptionMixin
|
||||
):
|
||||
"""Describes Dormakaba dKey binary sensor entity."""
|
||||
|
||||
|
||||
BINARY_SENSOR_DESCRIPTIONS = (
|
||||
DormakabaDkeyBinarySensorDescription(
|
||||
key="door_position",
|
||||
|
Loading…
x
Reference in New Issue
Block a user