From cf5b11576b3c57b9cf02985cb726fd588935b280 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Sat, 9 Mar 2024 00:04:52 +0100 Subject: [PATCH] Remove entity description mixin in iBeacon (#112779) --- homeassistant/components/ibeacon/sensor.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/homeassistant/components/ibeacon/sensor.py b/homeassistant/components/ibeacon/sensor.py index 8ec3ef9b67b..3b7ba3d5dbf 100644 --- a/homeassistant/components/ibeacon/sensor.py +++ b/homeassistant/components/ibeacon/sensor.py @@ -24,18 +24,13 @@ from .coordinator import IBeaconCoordinator from .entity import IBeaconEntity -@dataclass(frozen=True) -class IBeaconRequiredKeysMixin: - """Mixin for required keys.""" +@dataclass(frozen=True, kw_only=True) +class IBeaconSensorEntityDescription(SensorEntityDescription): + """Describes iBeacon sensor entity.""" value_fn: Callable[[iBeaconAdvertisement], str | int | None] -@dataclass(frozen=True) -class IBeaconSensorEntityDescription(SensorEntityDescription, IBeaconRequiredKeysMixin): - """Describes iBeacon sensor entity.""" - - SENSOR_DESCRIPTIONS = ( IBeaconSensorEntityDescription( key="rssi",