mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 06:17:07 +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)
|
||||
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…
x
Reference in New Issue
Block a user