Skip to content

Commit c5d044a

Browse files
committed
Fix inverted filtering as suggested by CRAI
1 parent 7f9255d commit c5d044a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise_usb/nodes/circle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ async def _energy_log_records_load_from_cache(self) -> bool:
663663
for address in sorted(collected_logs, reverse=True):
664664
for slot in range(4, 0, -1):
665665
(timestamp, pulses) = collected_logs[address][slot]
666-
if timestamp > skip_before:
666+
if timestamp <= skip_before:
667667
continue
668668
self._energy_counters.add_pulse_log(
669669
address=address,

0 commit comments

Comments
 (0)