From 8ea093ca3bc7900b03b352b7a71217261dc75436 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Sat, 9 Mar 2024 22:48:12 +0100 Subject: [PATCH] Remove entity description mixin in IPP (#112781) --- homeassistant/components/ipp/sensor.py | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/homeassistant/components/ipp/sensor.py b/homeassistant/components/ipp/sensor.py index 8e3162ec61d..1aad6ae6b21 100644 --- a/homeassistant/components/ipp/sensor.py +++ b/homeassistant/components/ipp/sensor.py @@ -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 _: {}