Skip to content

Commit c7fdc39

Browse files
committed
Add extra logging for checking the energy-logs in memory
1 parent b7176ce commit c7fdc39

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

plugwise_usb/nodes/circle.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,9 +725,15 @@ async def _energy_log_record_update_state(
725725
import_only: bool = False,
726726
) -> bool:
727727
"""Process new energy log record. Returns true if record is new or changed."""
728+
_LOGGER.warning(
729+
"EnergyLogs before update: %s", self._energy_counters.get_pulse_logs()
730+
)
728731
self._energy_counters.add_pulse_log(
729732
address, slot, timestamp, pulses, import_only=import_only
730733
)
734+
_LOGGER.warning(
735+
"EnergyLogs after update: %s", self._energy_counters.get_pulse_logs()
736+
)
731737
if not self._cache_enabled:
732738
return False
733739

0 commit comments

Comments
 (0)