mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 06:07:17 +00:00
Remove entity description mixin in PEGELONLINE (#112917)
This commit is contained in:
parent
cfc99af9ad
commit
69a322a6f2
@ -22,20 +22,13 @@ from .coordinator import PegelOnlineDataUpdateCoordinator
|
||||
from .entity import PegelOnlineEntity
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class PegelOnlineRequiredKeysMixin:
|
||||
"""Mixin for required keys."""
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class PegelOnlineSensorEntityDescription(SensorEntityDescription):
|
||||
"""PEGELONLINE sensor entity description."""
|
||||
|
||||
measurement_key: str
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class PegelOnlineSensorEntityDescription(
|
||||
SensorEntityDescription, PegelOnlineRequiredKeysMixin
|
||||
):
|
||||
"""PEGELONLINE sensor entity description."""
|
||||
|
||||
|
||||
SENSORS: tuple[PegelOnlineSensorEntityDescription, ...] = (
|
||||
PegelOnlineSensorEntityDescription(
|
||||
key="air_temperature",
|
||||
|
Loading…
x
Reference in New Issue
Block a user