Skip to content

Commit 1857bae

Browse files
committed
Add debug-message showing CircleEnergyLog data
1 parent 27bd8ca commit 1857bae

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

plugwise_usb/nodes/circle.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,12 @@ async def energy_log_update(self, address: int | None) -> bool:
504504
# energy pulses collected during the previous hour of given timestamp
505505
for _slot in range(4, 0, -1):
506506
log_timestamp, log_pulses = response.log_data[_slot]
507-
507+
_LOGGER.debug(
508+
"Energy data from slot=%s: pulses=%s, timestamp=%s",
509+
_slot,
510+
log_pulses,
511+
log_timestamp
512+
)
508513
if log_timestamp is None or log_pulses is None:
509514
self._energy_counters.add_empty_log(response.log_address, _slot)
510515
elif await self._energy_log_record_update_state(

0 commit comments

Comments
 (0)