From 2b2f7d1193b374ef3b5a58a9c6d8b3dac26cdeea Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Sat, 9 Mar 2024 16:07:10 +0100 Subject: [PATCH] Remove entity description mixin in Geocaching (#112770) --- homeassistant/components/geocaching/sensor.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/homeassistant/components/geocaching/sensor.py b/homeassistant/components/geocaching/sensor.py index 4065f199285..c082e5308a1 100644 --- a/homeassistant/components/geocaching/sensor.py +++ b/homeassistant/components/geocaching/sensor.py @@ -19,20 +19,13 @@ from .const import DOMAIN from .coordinator import GeocachingDataUpdateCoordinator -@dataclass(frozen=True) -class GeocachingRequiredKeysMixin: - """Mixin for required keys.""" +@dataclass(frozen=True, kw_only=True) +class GeocachingSensorEntityDescription(SensorEntityDescription): + """Define Sensor entity description class.""" value_fn: Callable[[GeocachingStatus], str | int | None] -@dataclass(frozen=True) -class GeocachingSensorEntityDescription( - SensorEntityDescription, GeocachingRequiredKeysMixin -): - """Define Sensor entity description class.""" - - SENSORS: tuple[GeocachingSensorEntityDescription, ...] = ( GeocachingSensorEntityDescription( key="find_count",