From 6f03c305d48436994a502265e50e123bdd360776 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Sat, 9 Mar 2024 16:03:30 +0100 Subject: [PATCH] Remove entity description mixin in Google wifi (#112774) --- homeassistant/components/google_wifi/sensor.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) 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,