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