Remove entity description mixin in Nettigo Air Monitor (#112909)
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…
Reference in New Issue