Remove entity description mixin in Nettigo Air Monitor (#112909)

pull/113021/head
Joost Lekkerkerker 2024-03-10 21:44:41 +01:00 committed by GitHub
parent 08874354c7
commit c8c00a86a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 8 deletions

View File

@ -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,