Improve notion generic typing (#91883)
This commit is contained in:
parent
f18056f0a4
commit
00e600d406
3 changed files with 8 additions and 7 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue