mirror of
https://github.com/home-assistant/core.git
synced 2026-09-13 18:25:06 -05:00
Remove entity description mixin in Zamg (#112976)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user