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
|
@ -20,14 +20,14 @@ from .coordinator import V2CUpdateCoordinator
|
|||
from .entity import V2CBaseEntity
|
||||
|
||||
|
||||
@dataclass
|
||||
@dataclass(frozen=True)
|
||||
class V2CRequiredKeysMixin:
|
||||
"""Mixin for required keys."""
|
||||
|
||||
value_fn: Callable[[Trydan], bool]
|
||||
|
||||
|
||||
@dataclass
|
||||
@dataclass(frozen=True)
|
||||
class V2CBinarySensorEntityDescription(
|
||||
BinarySensorEntityDescription, V2CRequiredKeysMixin
|
||||
):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue