Skip to content

Commit

Permalink
Remove ipma entity description required fields mixin (#106039)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbede authored Dec 19, 2023
1 parent 2419154 commit ed9e738
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions homeassistant/components/ipma/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,13 @@
_LOGGER = logging.getLogger(__name__)


@dataclass(frozen=True)
class IPMARequiredKeysMixin:
"""Mixin for required keys."""
@dataclass(frozen=True, kw_only=True)
class IPMASensorEntityDescription(SensorEntityDescription):
"""Describes a IPMA sensor entity."""

value_fn: Callable[[Location, IPMA_API], Coroutine[Location, IPMA_API, int | None]]


@dataclass(frozen=True)
class IPMASensorEntityDescription(SensorEntityDescription, IPMARequiredKeysMixin):
"""Describes IPMA sensor entity."""


async def async_retrieve_rcm(location: Location, api: IPMA_API) -> int | None:
"""Retrieve RCM."""
fire_risk: RCM = await location.fire_risk(api)
Expand Down

0 comments on commit ed9e738

Please sign in to comment.