diff --git a/thermostat.py b/thermostat.py index 17fc8d2..e0a6491 100644 --- a/thermostat.py +++ b/thermostat.py @@ -213,6 +213,7 @@ migrate = Migrate(app, db, compare_type=True) #sys.stdout.flush() target_name = default_target +forced_mode = None def thermostat_loop(): start_time = time.time() @@ -220,6 +221,7 @@ def thermostat_loop(): new_forced_mode = None first_loop = True global target_name + global forced_mode while True: # if stop.is_set():