We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6c9050 commit bd0195dCopy full SHA for bd0195d
plugwise_usb/nodes/circle.py
@@ -2,7 +2,7 @@
2
3
from __future__ import annotations
4
5
-from asyncio import Task, create_task
+from asyncio import Task, create_task, gather
6
from collections.abc import Awaitable, Callable
7
from dataclasses import replace
8
from datetime import UTC, datetime
@@ -510,9 +510,7 @@ async def get_missing_energy_logs(self) -> None:
510
for t in to_cancel:
511
t.cancel()
512
# Drain cancellations to avoid "Task exception was never retrieved"
513
- from asyncio import gather as _gather
514
-
515
- await _gather(*to_cancel, return_exceptions=True)
+ await gather(*to_cancel, return_exceptions=True)
516
break
517
518
if self._cache_enabled:
0 commit comments