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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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