Fixed type issue for update_interval

This commit is contained in:
Maximilian Giller 2019-03-19 16:34:14 +01:00
parent dcbaa4893e
commit 139c59bfab

View file

@ -4,7 +4,7 @@ class LoopTimer(object):
"""Manages loop times and sleeps until
next loop."""
def __init__(self, loop_interval, run_on_hour=False):
self.interval = loop_interval
self.interval = int(str(loop_interval))
self.on_hour = run_on_hour
self.loop_history = []