Remove entity description mixin in Zeversolar (#112977)

This commit is contained in:
Joost Lekkerkerker 2024-03-10 19:47:39 +01:00 committed by GitHub
parent 5d231ed61f
commit 65624a9491
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,20 +23,13 @@ from .coordinator import ZeversolarCoordinator
from .entity import ZeversolarEntity
@dataclass(frozen=True)
class ZeversolarEntityDescriptionMixin:
"""Mixin for required keys."""
@dataclass(frozen=True, kw_only=True)
class ZeversolarEntityDescription(SensorEntityDescription):
"""Describes Zeversolar sensor entity."""
value_fn: Callable[[zeversolar.ZeverSolarData], zeversolar.kWh | zeversolar.Watt]
@dataclass(frozen=True)
class ZeversolarEntityDescription(
SensorEntityDescription, ZeversolarEntityDescriptionMixin
):
"""Describes Zeversolar sensor entity."""
SENSOR_TYPES = (
ZeversolarEntityDescription(
key="pac",