diff --git a/homeassistant/components/ring/binary_sensor.py b/homeassistant/components/ring/binary_sensor.py index 1c39e484f97..599753cc1cc 100644 --- a/homeassistant/components/ring/binary_sensor.py +++ b/homeassistant/components/ring/binary_sensor.py @@ -20,20 +20,13 @@ from .coordinator import RingNotificationsCoordinator from .entity import RingEntity -@dataclass(frozen=True) -class RingRequiredKeysMixin: - """Mixin for required keys.""" +@dataclass(frozen=True, kw_only=True) +class RingBinarySensorEntityDescription(BinarySensorEntityDescription): + """Describes Ring binary sensor entity.""" category: list[str] -@dataclass(frozen=True) -class RingBinarySensorEntityDescription( - BinarySensorEntityDescription, RingRequiredKeysMixin -): - """Describes Ring binary sensor entity.""" - - BINARY_SENSOR_TYPES: tuple[RingBinarySensorEntityDescription, ...] = ( RingBinarySensorEntityDescription( key="ding", diff --git a/homeassistant/components/ring/sensor.py b/homeassistant/components/ring/sensor.py index 0c9c0196f11..b6b37a8a669 100644 --- a/homeassistant/components/ring/sensor.py +++ b/homeassistant/components/ring/sensor.py @@ -143,18 +143,13 @@ class HistoryRingSensor(RingSensor): return attrs -@dataclass(frozen=True) -class RingRequiredKeysMixin: - """Mixin for required keys.""" +@dataclass(frozen=True, kw_only=True) +class RingSensorEntityDescription(SensorEntityDescription): + """Describes Ring sensor entity.""" category: list[str] cls: type[RingSensor] - -@dataclass(frozen=True) -class RingSensorEntityDescription(SensorEntityDescription, RingRequiredKeysMixin): - """Describes Ring sensor entity.""" - kind: str | None = None