Freeze integration entity descriptions (#105984)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
ae8db120e8
commit
0c2485bc03
462 changed files with 806 additions and 804 deletions
|
@ -36,14 +36,14 @@ from .entity import SensiboDeviceBaseEntity, SensiboMotionBaseEntity
|
|||
PARALLEL_UPDATES = 0
|
||||
|
||||
|
||||
@dataclass
|
||||
@dataclass(frozen=True)
|
||||
class MotionBaseEntityDescriptionMixin:
|
||||
"""Mixin for required Sensibo base description keys."""
|
||||
|
||||
value_fn: Callable[[MotionSensor], StateType]
|
||||
|
||||
|
||||
@dataclass
|
||||
@dataclass(frozen=True)
|
||||
class DeviceBaseEntityDescriptionMixin:
|
||||
"""Mixin for required Sensibo base description keys."""
|
||||
|
||||
|
@ -51,14 +51,14 @@ class DeviceBaseEntityDescriptionMixin:
|
|||
extra_fn: Callable[[SensiboDevice], dict[str, str | bool | None] | None] | None
|
||||
|
||||
|
||||
@dataclass
|
||||
@dataclass(frozen=True)
|
||||
class SensiboMotionSensorEntityDescription(
|
||||
SensorEntityDescription, MotionBaseEntityDescriptionMixin
|
||||
):
|
||||
"""Describes Sensibo Motion sensor entity."""
|
||||
|
||||
|
||||
@dataclass
|
||||
@dataclass(frozen=True)
|
||||
class SensiboDeviceSensorEntityDescription(
|
||||
SensorEntityDescription, DeviceBaseEntityDescriptionMixin
|
||||
):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue