mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +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__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class BrotherSensorRequiredKeysMixin:
|
class BrotherSensorEntityDescription(SensorEntityDescription):
|
||||||
"""Class for Brother entity required keys."""
|
"""A class that describes sensor entities."""
|
||||||
|
|
||||||
value: Callable[[BrotherSensors], StateType | datetime]
|
value: Callable[[BrotherSensors], StateType | datetime]
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
|
||||||
class BrotherSensorEntityDescription(
|
|
||||||
SensorEntityDescription, BrotherSensorRequiredKeysMixin
|
|
||||||
):
|
|
||||||
"""A class that describes sensor entities."""
|
|
||||||
|
|
||||||
|
|
||||||
SENSOR_TYPES: tuple[BrotherSensorEntityDescription, ...] = (
|
SENSOR_TYPES: tuple[BrotherSensorEntityDescription, ...] = (
|
||||||
BrotherSensorEntityDescription(
|
BrotherSensorEntityDescription(
|
||||||
key="status",
|
key="status",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user