From f40fa5e50bb6698f54e44a956527722a4bba9356 Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Sun, 2 Jun 2024 15:03:21 +0200 Subject: [PATCH] Continue Flask migration. --- thermostat.py | 2 ++ 1 file changed, 2 insertions(+) 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():