Remove entity description mixin in Kaiterra (#112895)
parent
d9996d3add
commit
1fa0ce2f2c
|
@ -18,20 +18,13 @@ from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
||||||
from .const import DISPATCHER_KAITERRA, DOMAIN
|
from .const import DISPATCHER_KAITERRA, DOMAIN
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class KaiterraSensorRequiredKeysMixin:
|
class KaiterraSensorEntityDescription(SensorEntityDescription):
|
||||||
"""Mixin for required keys."""
|
"""Class describing Renault sensor entities."""
|
||||||
|
|
||||||
suffix: str
|
suffix: str
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
|
||||||
class KaiterraSensorEntityDescription(
|
|
||||||
SensorEntityDescription, KaiterraSensorRequiredKeysMixin
|
|
||||||
):
|
|
||||||
"""Class describing Renault sensor entities."""
|
|
||||||
|
|
||||||
|
|
||||||
SENSORS = [
|
SENSORS = [
|
||||||
KaiterraSensorEntityDescription(
|
KaiterraSensorEntityDescription(
|
||||||
suffix="Temperature",
|
suffix="Temperature",
|
||||||
|
|
Loading…
Reference in New Issue