diff --git a/homeassistant/components/private_ble_device/sensor.py b/homeassistant/components/private_ble_device/sensor.py index d186563da5e..e2c4fb0c7da 100644 --- a/homeassistant/components/private_ble_device/sensor.py +++ b/homeassistant/components/private_ble_device/sensor.py @@ -1,4 +1,4 @@ -"""Support for iBeacon device sensors.""" +"""Support for Private BLE Device sensors.""" from __future__ import annotations @@ -27,22 +27,15 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback from .entity import BasePrivateDeviceEntity -@dataclass(frozen=True) -class PrivateDeviceSensorEntityDescriptionRequired: - """Required domain specific fields for sensor entity.""" +@dataclass(frozen=True, kw_only=True) +class PrivateDeviceSensorEntityDescription(SensorEntityDescription): + """Describes sensor entity.""" value_fn: Callable[ [HomeAssistant, bluetooth.BluetoothServiceInfoBleak], str | int | float | None ] -@dataclass(frozen=True) -class PrivateDeviceSensorEntityDescription( - SensorEntityDescription, PrivateDeviceSensorEntityDescriptionRequired -): - """Describes sensor entity.""" - - SENSOR_DESCRIPTIONS = ( PrivateDeviceSensorEntityDescription( key="rssi",