mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 14:57:09 +00:00
Remove entity description mixin in Vilfo (#112966)
This commit is contained in:
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…
x
Reference in New Issue
Block a user