We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2bb99e commit 70e4805Copy full SHA for 70e4805
1 file changed
plugwise_usb/nodes/circle.py
@@ -2,7 +2,7 @@
2
3
from __future__ import annotations
4
5
-from asyncio import Task, create_task, gather
+from asyncio import Task, create_task
6
from collections.abc import Awaitable, Callable
7
from dataclasses import replace
8
from datetime import UTC, datetime
@@ -450,12 +450,10 @@ async def get_missing_energy_logs(self) -> None:
450
log_address = self._current_log_address
451
log_update_tasks = []
452
while total_addresses > 0:
453
- log_update_tasks.append(self.energy_log_update(log_address))
+ await self.energy_log_update(log_address)
454
log_address, _ = calc_log_address(log_address, 1, -4)
455
total_addresses -= 1
456
457
- await gather(*log_update_tasks)
458
-
459
if self._cache_enabled:
460
await self._energy_log_records_save_to_cache()
461
0 commit comments