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 0e2252a commit 399ffb4Copy full SHA for 399ffb4
plugwise_usb/nodes/circle.py
@@ -471,7 +471,9 @@ async def _get_initial_energy_logs(self) -> None:
471
# When both consumption and production are measured, 1 address contains data from 2 hours
472
factor = 4 if self.energy_production_interval is not None else 2
473
max_addresses_to_collect = int(MAX_LOG_HOURS / factor)
474
- total_addresses = min(max_addresses_to_collect, ceil(datetime.now(tz=UTC).hour / factor) + 1)
+ total_addresses = min(
475
+ max_addresses_to_collect, ceil(datetime.now(tz=UTC).hour / factor) + 1
476
+ )
477
log_address = self._current_log_address
478
while total_addresses > 0:
479
result = await self.energy_log_update(log_address)
0 commit comments