Remove entity description mixin in Vilfo (#112966)

pull/113051/head
Joost Lekkerkerker 2024-03-11 10:20:08 +01:00 committed by GitHub
parent 4095de0566
commit d0f53c2c99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 8 deletions

View File

@ -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,