diff --git a/homeassistant/components/permobil/sensor.py b/homeassistant/components/permobil/sensor.py index ce9cf906f37..54d3a61c519 100644 --- a/homeassistant/components/permobil/sensor.py +++ b/homeassistant/components/permobil/sensor.py @@ -41,21 +41,14 @@ from .entity import PermobilEntity _LOGGER = logging.getLogger(__name__) -@dataclass(frozen=True) -class PermobilRequiredKeysMixin: - """Mixin for required keys.""" +@dataclass(frozen=True, kw_only=True) +class PermobilSensorEntityDescription(SensorEntityDescription): + """Describes Permobil sensor entity.""" value_fn: Callable[[Any], float | int] available_fn: Callable[[Any], bool] -@dataclass(frozen=True) -class PermobilSensorEntityDescription( - SensorEntityDescription, PermobilRequiredKeysMixin -): - """Describes Permobil sensor entity.""" - - SENSOR_DESCRIPTIONS: tuple[PermobilSensorEntityDescription, ...] = ( PermobilSensorEntityDescription( # Current battery as a percentage