mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 08:47:57 +00:00
Remove entity description mixin in IPP (#112781)
This commit is contained in:
parent
23ebd80285
commit
8ea093ca3b
@ -38,19 +38,11 @@ from .coordinator import IPPDataUpdateCoordinator
|
||||
from .entity import IPPEntity
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class IPPSensorEntityDescriptionMixin:
|
||||
"""Mixin for required keys."""
|
||||
|
||||
value_fn: Callable[[Printer], StateType | datetime]
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class IPPSensorEntityDescription(
|
||||
SensorEntityDescription, IPPSensorEntityDescriptionMixin
|
||||
):
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class IPPSensorEntityDescription(SensorEntityDescription):
|
||||
"""Describes IPP sensor entity."""
|
||||
|
||||
value_fn: Callable[[Printer], StateType | datetime]
|
||||
attributes_fn: Callable[[Printer], dict[Any, StateType]] = lambda _: {}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user