diff --git a/homeassistant/components/google_wifi/sensor.py b/homeassistant/components/google_wifi/sensor.py index 71e3e2e3652..776fb44a51b 100644 --- a/homeassistant/components/google_wifi/sensor.py +++ b/homeassistant/components/google_wifi/sensor.py @@ -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,