Remove entity description mixin in IPP (#112781)

This commit is contained in:
Joost Lekkerkerker 2024-03-09 22:48:12 +01:00 committed by GitHub
parent 23ebd80285
commit 8ea093ca3b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,19 +38,11 @@ from .coordinator import IPPDataUpdateCoordinator
from .entity import IPPEntity from .entity import IPPEntity
@dataclass(frozen=True) @dataclass(frozen=True, kw_only=True)
class IPPSensorEntityDescriptionMixin: class IPPSensorEntityDescription(SensorEntityDescription):
"""Mixin for required keys."""
value_fn: Callable[[Printer], StateType | datetime]
@dataclass(frozen=True)
class IPPSensorEntityDescription(
SensorEntityDescription, IPPSensorEntityDescriptionMixin
):
"""Describes IPP sensor entity.""" """Describes IPP sensor entity."""
value_fn: Callable[[Printer], StateType | datetime]
attributes_fn: Callable[[Printer], dict[Any, StateType]] = lambda _: {} attributes_fn: Callable[[Printer], dict[Any, StateType]] = lambda _: {}