Remove entity description mixin in PEGELONLINE (#112917)
This commit is contained in:
parent
cfc99af9ad
commit
69a322a6f2
1 changed files with 3 additions and 10 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue