mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 23:57:06 +00:00
Remove entity description mixin in Google wifi (#112774)
This commit is contained in:
parent
b0f0bc6c5c
commit
6f03c305d4
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user