Skip to content

Commit afb5724

Browse files
committed
Improve comment
1 parent b689b96 commit afb5724

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugwise_usb/nodes/circle.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,8 @@ async def _get_initial_energy_logs(self) -> None:
469469
while total_addresses > 0:
470470
result = await self.energy_log_update(log_address)
471471
if not result:
472-
# Handle case with None-data in all address slots
472+
# Stop initial log collection when an address contains no (None) or outdated data
473+
# Outdated data can indicate a EnergyLog address rollover: from address 6014 to 0
473474
_LOGGER.debug(
474475
"All slots at log address %s are empty or outdated – stopping initial collection",
475476
log_address,

0 commit comments

Comments
 (0)