Remove entity description mixin in Dormakaba dKey (#112401)

This commit is contained in:
Joost Lekkerkerker 2024-03-05 19:07:45 +01:00 committed by GitHub
parent 4d82ea516a
commit 8e2de51710
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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",