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
|
@ -173,7 +173,7 @@ class HistoryRingSensor(RingSensor):
|
|||
return attrs
|
||||
|
||||
|
||||
@dataclass
|
||||
@dataclass(frozen=True)
|
||||
class RingRequiredKeysMixin:
|
||||
"""Mixin for required keys."""
|
||||
|
||||
|
@ -181,7 +181,7 @@ class RingRequiredKeysMixin:
|
|||
cls: type[RingSensor]
|
||||
|
||||
|
||||
@dataclass
|
||||
@dataclass(frozen=True)
|
||||
class RingSensorEntityDescription(SensorEntityDescription, RingRequiredKeysMixin):
|
||||
"""Describes Ring sensor entity."""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue