Skip to content

Commit 40e1f7f

Browse files
committed
Don't reset log_pulses to 0 at end of an interval,
this interferes with the reset happening on the device
1 parent d2a6db7 commit 40e1f7f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plugwise_usb/nodes/helpers/pulses.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,17 +219,17 @@ def _collect_pulses_from_logs(
219219
self._mac,
220220
)
221221
return None
222-
if from_timestamp > self._last_log_consumption_timestamp:
223-
return 0
222+
# if from_timestamp > self._last_log_consumption_timestamp:
223+
# return 0
224224
else:
225225
if self._last_log_production_timestamp is None:
226226
_LOGGER.debug(
227227
"_collect_pulses_from_logs | %s | self._last_log_production_timestamp=None",
228228
self._mac,
229229
)
230230
return None
231-
if from_timestamp > self._last_log_production_timestamp:
232-
return 0
231+
# if from_timestamp > self._last_log_production_timestamp:
232+
# return 0
233233

234234
missing_logs = self._logs_missing(from_timestamp)
235235
if missing_logs is None or missing_logs:

0 commit comments

Comments
 (0)