mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Remove entity description mixin in Brother (#112396)
This commit is contained in:
parent
e160d036d9
commit
38a6b45f60
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user