Remove entity description mixin in Google wifi (#112774)

This commit is contained in:
Joost Lekkerkerker
2024-03-09 16:03:30 +01:00
committed by GitHub
parent b0f0bc6c5c
commit 6f03c305d4

View File

@@ -43,21 +43,14 @@ ENDPOINT = "/api/v1/status"
MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=1)
@dataclass(frozen=True)
class GoogleWifiRequiredKeysMixin:
"""Mixin for required keys."""
@dataclass(frozen=True, kw_only=True)
class GoogleWifiSensorEntityDescription(SensorEntityDescription):
"""Describes GoogleWifi sensor entity."""
primary_key: str
sensor_key: str
@dataclass(frozen=True)
class GoogleWifiSensorEntityDescription(
SensorEntityDescription, GoogleWifiRequiredKeysMixin
):
"""Describes GoogleWifi sensor entity."""
SENSOR_TYPES: tuple[GoogleWifiSensorEntityDescription, ...] = (
GoogleWifiSensorEntityDescription(
key=ATTR_CURRENT_VERSION,