mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +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
|
from .models import DormakabaDkeyData
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class DormakabaDkeyBinarySensorDescriptionMixin:
|
class DormakabaDkeyBinarySensorDescription(BinarySensorEntityDescription):
|
||||||
"""Class for keys required by Dormakaba dKey binary sensor entity."""
|
"""Describes Dormakaba dKey binary sensor entity."""
|
||||||
|
|
||||||
is_on: Callable[[Notifications], bool]
|
is_on: Callable[[Notifications], bool]
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
|
||||||
class DormakabaDkeyBinarySensorDescription(
|
|
||||||
BinarySensorEntityDescription, DormakabaDkeyBinarySensorDescriptionMixin
|
|
||||||
):
|
|
||||||
"""Describes Dormakaba dKey binary sensor entity."""
|
|
||||||
|
|
||||||
|
|
||||||
BINARY_SENSOR_DESCRIPTIONS = (
|
BINARY_SENSOR_DESCRIPTIONS = (
|
||||||
DormakabaDkeyBinarySensorDescription(
|
DormakabaDkeyBinarySensorDescription(
|
||||||
key="door_position",
|
key="door_position",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user