mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Remove entity description mixin in Meteo-France (#112907)
This commit is contained in:
parent
3c217d737e
commit
7f3a850ca5
@ -52,20 +52,13 @@ from .const import (
|
|||||||
_DataT = TypeVar("_DataT", bound=Rain | Forecast | CurrentPhenomenons)
|
_DataT = TypeVar("_DataT", bound=Rain | Forecast | CurrentPhenomenons)
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class MeteoFranceRequiredKeysMixin:
|
class MeteoFranceSensorEntityDescription(SensorEntityDescription):
|
||||||
"""Mixin for required keys."""
|
"""Describes Meteo-France sensor entity."""
|
||||||
|
|
||||||
data_path: str
|
data_path: str
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
|
||||||
class MeteoFranceSensorEntityDescription(
|
|
||||||
SensorEntityDescription, MeteoFranceRequiredKeysMixin
|
|
||||||
):
|
|
||||||
"""Describes Meteo-France sensor entity."""
|
|
||||||
|
|
||||||
|
|
||||||
SENSOR_TYPES: tuple[MeteoFranceSensorEntityDescription, ...] = (
|
SENSOR_TYPES: tuple[MeteoFranceSensorEntityDescription, ...] = (
|
||||||
MeteoFranceSensorEntityDescription(
|
MeteoFranceSensorEntityDescription(
|
||||||
key="pressure",
|
key="pressure",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user