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",