Remove entity description mixin in BAF (#112386)

This commit is contained in:
Joost Lekkerkerker
2024-03-06 01:59:07 +01:00
committed by GitHub
parent fc732ecf17
commit f03be2fd9e
4 changed files with 12 additions and 35 deletions

View File

@@ -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(