Skip to content

Commit

Permalink
Remove entity description mixin in Accuweather (home-assistant#112375)
Browse files Browse the repository at this point in the history
  • Loading branch information
joostlek authored Mar 5, 2024
1 parent 946572e commit 0b113b6
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions homeassistant/components/accuweather/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,11 @@
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

Expand Down

0 comments on commit 0b113b6

Please sign in to comment.