Improve notion generic typing (#91883)

This commit is contained in:
Marc Mueller 2023-04-23 11:24:39 +02:00 committed by GitHub
parent f18056f0a4
commit 00e600d406
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 7 deletions

View file

@ -69,7 +69,7 @@ class NotionSensor(NotionEntity, SensorEntity):
listener = self.coordinator.data.listeners[self._listener_id]
if listener.listener_kind == ListenerKind.TEMPERATURE:
self._attr_native_value = round(listener.status.temperature, 1)
self._attr_native_value = round(listener.status.temperature, 1) # type: ignore[attr-defined]
else:
LOGGER.error(
"Unknown listener type for sensor %s",