mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 07:37:34 +00:00
Remove entity description mixin in Nettigo Air Monitor (#112909)
This commit is contained in:
parent
08874354c7
commit
c8c00a86a6
@ -75,18 +75,13 @@ PARALLEL_UPDATES = 1
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class NAMSensorRequiredKeysMixin:
|
||||
"""Class for NAM entity required keys."""
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class NAMSensorEntityDescription(SensorEntityDescription):
|
||||
"""NAM sensor entity description."""
|
||||
|
||||
value: Callable[[NAMSensors], StateType | datetime]
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class NAMSensorEntityDescription(SensorEntityDescription, NAMSensorRequiredKeysMixin):
|
||||
"""NAM sensor entity description."""
|
||||
|
||||
|
||||
SENSORS: tuple[NAMSensorEntityDescription, ...] = (
|
||||
NAMSensorEntityDescription(
|
||||
key=ATTR_BME280_HUMIDITY,
|
||||
|
Loading…
x
Reference in New Issue
Block a user