Add start method to Timer
MODIFY
plextraktsync/timer.py
plextraktsync/timer.py
@@ -28,6 +28,13 @@ def time_remaining(self):
def update(self):
self.last_time = monotonic()
+ def start(self):
+ """
+ Start the timer only if not yet started
+ """
+ if not self.last_time:
+ self.update()
+
def wait_if_needed(self):
if not self.last_time:
self.update()

Add start method to Timer