From dd210495f2f3f58c54786122a209d2cf05061eb0 Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Sun, 2 Jun 2024 14:58:11 +0200 Subject: [PATCH] Continue Flask migration. --- thermostat.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/thermostat.py b/thermostat.py index 61c0e66..17fc8d2 100644 --- a/thermostat.py +++ b/thermostat.py @@ -212,12 +212,14 @@ migrate = Migrate(app, db, compare_type=True) # print(row) #sys.stdout.flush() +target_name = default_target + def thermostat_loop(): start_time = time.time() last_control_time = None new_forced_mode = None - target_name = default_target first_loop = True + global target_name while True: # if stop.is_set():