Remove entity description mixin in Accuweather (#112375)

This commit is contained in:
Joost Lekkerkerker 2024-03-05 16:20:29 +01:00 committed by GitHub
parent 946572e382
commit 0b113b6b71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -45,19 +45,11 @@ from .const import (
PARALLEL_UPDATES = 1
@dataclass(frozen=True)
class AccuWeatherSensorDescriptionMixin:
"""Mixin for AccuWeather sensor."""
value_fn: Callable[[dict[str, Any]], str | int | float | None]
@dataclass(frozen=True)
class AccuWeatherSensorDescription(
SensorEntityDescription, AccuWeatherSensorDescriptionMixin
):
@dataclass(frozen=True, kw_only=True)
class AccuWeatherSensorDescription(SensorEntityDescription):
"""Class describing AccuWeather sensor entities."""
value_fn: Callable[[dict[str, Any]], str | int | float | None]
attr_fn: Callable[[dict[str, Any]], dict[str, Any]] = lambda _: {}
day: int | None = None