mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Remove entity description mixin in Geocaching (#112770)
This commit is contained in:
parent
6e1981c43c
commit
2b2f7d1193
@ -19,20 +19,13 @@ from .const import DOMAIN
|
||||
from .coordinator import GeocachingDataUpdateCoordinator
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class GeocachingRequiredKeysMixin:
|
||||
"""Mixin for required keys."""
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class GeocachingSensorEntityDescription(SensorEntityDescription):
|
||||
"""Define Sensor entity description class."""
|
||||
|
||||
value_fn: Callable[[GeocachingStatus], str | int | None]
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class GeocachingSensorEntityDescription(
|
||||
SensorEntityDescription, GeocachingRequiredKeysMixin
|
||||
):
|
||||
"""Define Sensor entity description class."""
|
||||
|
||||
|
||||
SENSORS: tuple[GeocachingSensorEntityDescription, ...] = (
|
||||
GeocachingSensorEntityDescription(
|
||||
key="find_count",
|
||||
|
Loading…
x
Reference in New Issue
Block a user