mirror of
https://github.com/home-assistant/core.git
synced 2025-11-24 02:07:01 +00:00
Freeze integration entity descriptions (#105984)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
@@ -22,14 +22,14 @@ from .entity import LitterRobotEntity, _RobotT
|
||||
from .hub import LitterRobotHub
|
||||
|
||||
|
||||
@dataclass
|
||||
@dataclass(frozen=True)
|
||||
class RequiredKeysMixin(Generic[_RobotT]):
|
||||
"""A class that describes robot binary sensor entity required keys."""
|
||||
|
||||
is_on_fn: Callable[[_RobotT], bool]
|
||||
|
||||
|
||||
@dataclass
|
||||
@dataclass(frozen=True)
|
||||
class RobotBinarySensorEntityDescription(
|
||||
BinarySensorEntityDescription, RequiredKeysMixin[_RobotT]
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user