diff --git a/homeassistant/components/peco/sensor.py b/homeassistant/components/peco/sensor.py index 60a3a07212d..d08947eb0ec 100644 --- a/homeassistant/components/peco/sensor.py +++ b/homeassistant/components/peco/sensor.py @@ -25,21 +25,14 @@ from . import PECOCoordinatorData from .const import ATTR_CONTENT, CONF_COUNTY, DOMAIN -@dataclass(frozen=True) -class PECOSensorEntityDescriptionMixin: - """Mixin for required keys.""" +@dataclass(frozen=True, kw_only=True) +class PECOSensorEntityDescription(SensorEntityDescription): + """Description for PECO sensor.""" value_fn: Callable[[PECOCoordinatorData], int | str] attribute_fn: Callable[[PECOCoordinatorData], dict[str, str]] -@dataclass(frozen=True) -class PECOSensorEntityDescription( - SensorEntityDescription, PECOSensorEntityDescriptionMixin -): - """Description for PECO sensor.""" - - PARALLEL_UPDATES: Final = 0 SENSOR_LIST: tuple[PECOSensorEntityDescription, ...] = ( PECOSensorEntityDescription(