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
|
from .entity import PegelOnlineEntity
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class PegelOnlineRequiredKeysMixin:
|
class PegelOnlineSensorEntityDescription(SensorEntityDescription):
|
||||||
"""Mixin for required keys."""
|
"""PEGELONLINE sensor entity description."""
|
||||||
|
|
||||||
measurement_key: str
|
measurement_key: str
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
|
||||||
class PegelOnlineSensorEntityDescription(
|
|
||||||
SensorEntityDescription, PegelOnlineRequiredKeysMixin
|
|
||||||
):
|
|
||||||
"""PEGELONLINE sensor entity description."""
|
|
||||||
|
|
||||||
|
|
||||||
SENSORS: tuple[PegelOnlineSensorEntityDescription, ...] = (
|
SENSORS: tuple[PegelOnlineSensorEntityDescription, ...] = (
|
||||||
PegelOnlineSensorEntityDescription(
|
PegelOnlineSensorEntityDescription(
|
||||||
key="air_temperature",
|
key="air_temperature",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue