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