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",