From 38a6b45f600d961daa70154faa474edeef4fb6d1 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Tue, 5 Mar 2024 17:29:40 +0100 Subject: [PATCH] Remove entity description mixin in Brother (#112396) --- homeassistant/components/brother/sensor.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/homeassistant/components/brother/sensor.py b/homeassistant/components/brother/sensor.py index 198fe621246..c940e03bc0a 100644 --- a/homeassistant/components/brother/sensor.py +++ b/homeassistant/components/brother/sensor.py @@ -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",