Skip to content

Commit 90b68a9

Browse files
committed
Clean-up _collect_energy_pulses()
1 parent d912472 commit 90b68a9

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

plugwise_usb/nodes/circle.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -418,17 +418,12 @@ def _collect_energy_pulses(self, start_utc: datetime, end_utc: datetime):
418418
str(_energy_pulses),
419419
)
420420
else:
421-
_mem_address = self._energy_timestamp_memory_address(_log_timestamp)
422421
if self._energy_history_failed_address.count(_mem_address) == 0:
423422
self._energy_history_failed_address.append(_mem_address)
424423
_LOGGER.info(
425-
"_collect_energy_pulses for %s at %s not found, request counter from memory %s (from mem=%s, slot=%s, timestamp=%s)",
424+
"_collect_energy_pulses for %s at %s not found",
426425
self.mac,
427426
str(_log_timestamp),
428-
str(_mem_address),
429-
str(self._last_log_address),
430-
str(self._energy_last_populated_slot),
431-
str(self._energy_last_collected_timestamp),
432427
)
433428

434429
# Validate all history values where present

0 commit comments

Comments
 (0)