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__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class NAMSensorRequiredKeysMixin:
|
class NAMSensorEntityDescription(SensorEntityDescription):
|
||||||
"""Class for NAM entity required keys."""
|
"""NAM sensor entity description."""
|
||||||
|
|
||||||
value: Callable[[NAMSensors], StateType | datetime]
|
value: Callable[[NAMSensors], StateType | datetime]
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
|
||||||
class NAMSensorEntityDescription(SensorEntityDescription, NAMSensorRequiredKeysMixin):
|
|
||||||
"""NAM sensor entity description."""
|
|
||||||
|
|
||||||
|
|
||||||
SENSORS: tuple[NAMSensorEntityDescription, ...] = (
|
SENSORS: tuple[NAMSensorEntityDescription, ...] = (
|
||||||
NAMSensorEntityDescription(
|
NAMSensorEntityDescription(
|
||||||
key=ATTR_BME280_HUMIDITY,
|
key=ATTR_BME280_HUMIDITY,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user