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
|
@ -47,14 +47,14 @@ def get_modified_description(
|
|||
return desc, name
|
||||
|
||||
|
||||
@dataclasses.dataclass
|
||||
@dataclasses.dataclass(frozen=True)
|
||||
class RadarrSensorEntityDescriptionMixIn(Generic[T]):
|
||||
"""Mixin for required keys."""
|
||||
|
||||
value_fn: Callable[[T, str], str | int | datetime]
|
||||
|
||||
|
||||
@dataclasses.dataclass
|
||||
@dataclasses.dataclass(frozen=True)
|
||||
class RadarrSensorEntityDescription(
|
||||
SensorEntityDescription, RadarrSensorEntityDescriptionMixIn[T], Generic[T]
|
||||
):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue