Remove entity description mixin in Zamg (#112976)

This commit is contained in:
Joost Lekkerkerker 2024-03-11 11:51:21 +01:00 committed by GitHub
parent a8bde2df3c
commit 2b8f42be39
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,18 +38,13 @@ from .const import (
from .coordinator import ZamgDataUpdateCoordinator
@dataclass(frozen=True)
class ZamgRequiredKeysMixin:
"""Mixin for required keys."""
@dataclass(frozen=True, kw_only=True)
class ZamgSensorEntityDescription(SensorEntityDescription):
"""Describes Zamg sensor entity."""
para_name: str
@dataclass(frozen=True)
class ZamgSensorEntityDescription(SensorEntityDescription, ZamgRequiredKeysMixin):
"""Describes Zamg sensor entity."""
SENSOR_TYPES: tuple[ZamgSensorEntityDescription, ...] = (
ZamgSensorEntityDescription(
key="pressure",