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
|
@ -23,14 +23,14 @@ from .entity import TrafikverketCameraNonCameraEntity
|
|||
PARALLEL_UPDATES = 0
|
||||
|
||||
|
||||
@dataclass
|
||||
@dataclass(frozen=True)
|
||||
class DeviceBaseEntityDescriptionMixin:
|
||||
"""Mixin for required Trafikverket Camera base description keys."""
|
||||
|
||||
value_fn: Callable[[CameraData], StateType | datetime]
|
||||
|
||||
|
||||
@dataclass
|
||||
@dataclass(frozen=True)
|
||||
class TVCameraSensorEntityDescription(
|
||||
SensorEntityDescription, DeviceBaseEntityDescriptionMixin
|
||||
):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue