mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 19:09:32 +00:00
Remove entity description mixin in BAF (#112386)
This commit is contained in:
committed by
GitHub
parent
fc732ecf17
commit
f03be2fd9e
@@ -21,20 +21,14 @@ from .entity import BAFEntity
|
||||
from .models import BAFData
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class BAFBinarySensorDescriptionMixin:
|
||||
"""Required values for BAF binary sensors."""
|
||||
|
||||
value_fn: Callable[[Device], bool | None]
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class BAFBinarySensorDescription(
|
||||
BinarySensorEntityDescription,
|
||||
BAFBinarySensorDescriptionMixin,
|
||||
):
|
||||
"""Class describing BAF binary sensor entities."""
|
||||
|
||||
value_fn: Callable[[Device], bool | None]
|
||||
|
||||
|
||||
OCCUPANCY_SENSORS = (
|
||||
BAFBinarySensorDescription(
|
||||
|
||||
Reference in New Issue
Block a user