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 5fec0d3 commit 23c1a44Copy full SHA for 23c1a44
plugwise_usb/nodes/circle.py
@@ -860,11 +860,11 @@ async def _clock_synchronize_scheduler(self) -> None:
860
"""Background task: periodically synchronize the clock until cancelled."""
861
try:
862
while True:
863
- await sleep(CLOCK_SYNC_PERIOD)
+ await sleep(CLOCK_SYNC_PERIOD + (random.uniform(-5, 5)))
864
865
await self.clock_synchronize()
866
except Exception:
867
- _LOGGER.exception("Clock synchronisation failed for %s", self._mac_in_str)
+ _LOGGER.exception("Clock synchronization failed for %s", self._mac_in_str)
868
except CancelledError:
869
_LOGGER.debug("Clock sync scheduler cancelled for %s", self._mac_in_str)
870
raise
0 commit comments