Skip to content

Commit 026d11c

Browse files
committed
Improve logging, formatting
1 parent fe96f99 commit 026d11c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugwise_usb/nodes/circle.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ async def energy_log_update(self, address: int | None) -> bool:
508508
for _slot in range(4, 0, -1):
509509
log_timestamp, log_pulses = response.log_data[_slot]
510510
_LOGGER.debug(
511-
"Energy data from slot=%s: pulses=%s, timestamp=%s",
511+
"In slot=%s: pulses=%s, timestamp=%s",
512512
_slot,
513513
log_pulses,
514514
log_timestamp
@@ -523,9 +523,11 @@ async def energy_log_update(self, address: int | None) -> bool:
523523
import_only=True,
524524
):
525525
energy_record_update = True
526+
526527
self._energy_counters.update()
527528
if energy_record_update:
528529
await self.save_cache()
530+
529531
return True
530532

531533
async def _energy_log_records_load_from_cache(self) -> bool:

0 commit comments

Comments
 (0)