Remove entity description mixin in Meteo-France (#112907)
This commit is contained in:
parent
3c217d737e
commit
7f3a850ca5
1 changed files with 3 additions and 10 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue