mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +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
|
||||
|
||||
|
||||
@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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user