We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e77b2d9 commit 0097570Copy full SHA for 0097570
plugwise_usb/nodes/helpers/pulses.py
@@ -921,6 +921,9 @@ def _last_known_duration(self) -> timedelta:
921
):
922
address, slot = calc_log_address(address, slot, -1)
923
924
+ if self._logs[address][slot].timestamp == last_known_timestamp:
925
+ return timedelta(hours=1)
926
+
927
return self._logs[address][slot].timestamp - last_known_timestamp
928
929
def _missing_addresses_before(
0 commit comments