mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 13:47:35 +00:00
Remove entity description mixin in Zamg (#112976)
This commit is contained in:
parent
a8bde2df3c
commit
2b8f42be39
@ -38,18 +38,13 @@ from .const import (
|
|||||||
from .coordinator import ZamgDataUpdateCoordinator
|
from .coordinator import ZamgDataUpdateCoordinator
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class ZamgRequiredKeysMixin:
|
class ZamgSensorEntityDescription(SensorEntityDescription):
|
||||||
"""Mixin for required keys."""
|
"""Describes Zamg sensor entity."""
|
||||||
|
|
||||||
para_name: str
|
para_name: str
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
|
||||||
class ZamgSensorEntityDescription(SensorEntityDescription, ZamgRequiredKeysMixin):
|
|
||||||
"""Describes Zamg sensor entity."""
|
|
||||||
|
|
||||||
|
|
||||||
SENSOR_TYPES: tuple[ZamgSensorEntityDescription, ...] = (
|
SENSOR_TYPES: tuple[ZamgSensorEntityDescription, ...] = (
|
||||||
ZamgSensorEntityDescription(
|
ZamgSensorEntityDescription(
|
||||||
key="pressure",
|
key="pressure",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user