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
|
@ -31,7 +31,7 @@ from .coordinator import SonarrDataT, SonarrDataUpdateCoordinator
|
|||
from .entity import SonarrEntity
|
||||
|
||||
|
||||
@dataclass
|
||||
@dataclass(frozen=True)
|
||||
class SonarrSensorEntityDescriptionMixIn(Generic[SonarrDataT]):
|
||||
"""Mixin for Sonarr sensor."""
|
||||
|
||||
|
@ -39,7 +39,7 @@ class SonarrSensorEntityDescriptionMixIn(Generic[SonarrDataT]):
|
|||
value_fn: Callable[[SonarrDataT], StateType]
|
||||
|
||||
|
||||
@dataclass
|
||||
@dataclass(frozen=True)
|
||||
class SonarrSensorEntityDescription(
|
||||
SensorEntityDescription, SonarrSensorEntityDescriptionMixIn[SonarrDataT]
|
||||
):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue