Remove entity description mixin in Vilfo (#112966)
parent
4095de0566
commit
d0f53c2c99
|
@ -25,18 +25,13 @@ from .const import (
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class VilfoRequiredKeysMixin:
|
class VilfoSensorEntityDescription(SensorEntityDescription):
|
||||||
"""Mixin for required keys."""
|
"""Describes Vilfo sensor entity."""
|
||||||
|
|
||||||
api_key: str
|
api_key: str
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
|
||||||
class VilfoSensorEntityDescription(SensorEntityDescription, VilfoRequiredKeysMixin):
|
|
||||||
"""Describes Vilfo sensor entity."""
|
|
||||||
|
|
||||||
|
|
||||||
SENSOR_TYPES: tuple[VilfoSensorEntityDescription, ...] = (
|
SENSOR_TYPES: tuple[VilfoSensorEntityDescription, ...] = (
|
||||||
VilfoSensorEntityDescription(
|
VilfoSensorEntityDescription(
|
||||||
key=ATTR_LOAD,
|
key=ATTR_LOAD,
|
||||||
|
|
Loading…
Reference in New Issue