Remove entity description mixin in Brother (#112396)

This commit is contained in:
Joost Lekkerkerker 2024-03-05 17:29:40 +01:00 committed by GitHub
parent e160d036d9
commit 38a6b45f60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,20 +35,13 @@ UNIT_PAGES = "p"
_LOGGER = logging.getLogger(__name__)
@dataclass(frozen=True)
class BrotherSensorRequiredKeysMixin:
"""Class for Brother entity required keys."""
@dataclass(frozen=True, kw_only=True)
class BrotherSensorEntityDescription(SensorEntityDescription):
"""A class that describes sensor entities."""
value: Callable[[BrotherSensors], StateType | datetime]
@dataclass(frozen=True)
class BrotherSensorEntityDescription(
SensorEntityDescription, BrotherSensorRequiredKeysMixin
):
"""A class that describes sensor entities."""
SENSOR_TYPES: tuple[BrotherSensorEntityDescription, ...] = (
BrotherSensorEntityDescription(
key="status",