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)
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class MeteoFranceRequiredKeysMixin:
|
||||
"""Mixin for required keys."""
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class MeteoFranceSensorEntityDescription(SensorEntityDescription):
|
||||
"""Describes Meteo-France sensor entity."""
|
||||
|
||||
data_path: str
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class MeteoFranceSensorEntityDescription(
|
||||
SensorEntityDescription, MeteoFranceRequiredKeysMixin
|
||||
):
|
||||
"""Describes Meteo-France sensor entity."""
|
||||
|
||||
|
||||
SENSOR_TYPES: tuple[MeteoFranceSensorEntityDescription, ...] = (
|
||||
MeteoFranceSensorEntityDescription(
|
||||
key="pressure",
|
||||
|
Loading…
x
Reference in New Issue
Block a user