mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 16:17:20 +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)
|
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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user