mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
Remove entity description mixin in Yalexs BLE (#112974)
This commit is contained in:
parent
2b8f42be39
commit
ea300623f9
@ -28,20 +28,13 @@ from .entity import YALEXSBLEEntity
|
|||||||
from .models import YaleXSBLEData
|
from .models import YaleXSBLEData
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class YaleXSBLERequiredKeysMixin:
|
class YaleXSBLESensorEntityDescription(SensorEntityDescription):
|
||||||
"""Mixin for required keys."""
|
"""Describes Yale Access Bluetooth sensor entity."""
|
||||||
|
|
||||||
value_fn: Callable[[LockState, LockInfo, ConnectionInfo], int | float | None]
|
value_fn: Callable[[LockState, LockInfo, ConnectionInfo], int | float | None]
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
|
||||||
class YaleXSBLESensorEntityDescription(
|
|
||||||
SensorEntityDescription, YaleXSBLERequiredKeysMixin
|
|
||||||
):
|
|
||||||
"""Describes Yale Access Bluetooth sensor entity."""
|
|
||||||
|
|
||||||
|
|
||||||
SENSORS: tuple[YaleXSBLESensorEntityDescription, ...] = (
|
SENSORS: tuple[YaleXSBLESensorEntityDescription, ...] = (
|
||||||
YaleXSBLESensorEntityDescription(
|
YaleXSBLESensorEntityDescription(
|
||||||
key="", # No key for the original RSSI sensor unique id
|
key="", # No key for the original RSSI sensor unique id
|
||||||
|
Loading…
x
Reference in New Issue
Block a user