Skip to content

Commit 76eb9ca

Browse files
committed
Add double timestamp debug-message
1 parent 87cd156 commit 76eb9ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugwise_usb/nodes/helpers/pulses.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ def collected_pulses(
190190
if is_consumption and self._pulses_consumption is not None:
191191
timestamp = self._pulses_timestamp
192192
if self._prev_timestamp == timestamp:
193-
return
193+
_LOGGER.debug("collected_pulses | %s | double timestamp=%s", self._mac, timestamp)
194+
return (None, None)
194195

195196
delta_cons_pulses = self._pulses_consumption - self._prev_pulses_consumption
196197
pulses = self._prev_pulses_consumption + delta_cons_pulses

0 commit comments

Comments
 (0)