mirror of
https://github.com/home-assistant/core.git
synced 2026-09-24 07:25:52 -05:00
Remove entity description mixin in Justnimbus (#112893)
This commit is contained in:
@@ -29,20 +29,13 @@ from .const import DOMAIN
|
||||
from .entity import JustNimbusEntity
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class JustNimbusEntityDescriptionMixin:
|
||||
"""Mixin for required keys."""
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class JustNimbusEntityDescription(SensorEntityDescription):
|
||||
"""Describes JustNimbus sensor entity."""
|
||||
|
||||
value_fn: Callable[[JustNimbusCoordinator], Any]
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class JustNimbusEntityDescription(
|
||||
SensorEntityDescription, JustNimbusEntityDescriptionMixin
|
||||
):
|
||||
"""Describes JustNimbus sensor entity."""
|
||||
|
||||
|
||||
SENSOR_TYPES = (
|
||||
JustNimbusEntityDescription(
|
||||
key="pump_pressure",
|
||||
|
||||
Reference in New Issue
Block a user