Skip to content

Commit

Permalink
Remove entity description mixin in Dormakaba dKey (home-assistant#112401
Browse files Browse the repository at this point in the history
)
  • Loading branch information
joostlek authored Mar 5, 2024
1 parent 4d82ea5 commit 8e2de51
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions homeassistant/components/dormakaba_dkey/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,13 @@
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",
Expand Down

0 comments on commit 8e2de51

Please sign in to comment.