Skip to content

Commit 70e4805

Browse files
committed
Don't use gather
1 parent b2bb99e commit 70e4805

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

plugwise_usb/nodes/circle.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from asyncio import Task, create_task, gather
5+
from asyncio import Task, create_task
66
from collections.abc import Awaitable, Callable
77
from dataclasses import replace
88
from datetime import UTC, datetime
@@ -450,12 +450,10 @@ async def get_missing_energy_logs(self) -> None:
450450
log_address = self._current_log_address
451451
log_update_tasks = []
452452
while total_addresses > 0:
453-
log_update_tasks.append(self.energy_log_update(log_address))
453+
await self.energy_log_update(log_address)
454454
log_address, _ = calc_log_address(log_address, 1, -4)
455455
total_addresses -= 1
456456

457-
await gather(*log_update_tasks)
458-
459457
if self._cache_enabled:
460458
await self._energy_log_records_save_to_cache()
461459

0 commit comments

Comments
 (0)