Continue Flask migration.
This commit is contained in:
parent
944018f762
commit
7b8c5014d0
@ -204,12 +204,6 @@ with app.app_context():
|
||||
db.create_all()
|
||||
migrate = Migrate(app, db, compare_type=True)
|
||||
|
||||
start_time = time.time()
|
||||
last_control_time = None
|
||||
new_forced_mode = None
|
||||
target_name = default_target
|
||||
first_loop = True
|
||||
|
||||
# TODO: Get Linky overload warning
|
||||
|
||||
#cursor.execute("SELECT * FROM set_mode")
|
||||
@ -219,6 +213,12 @@ first_loop = True
|
||||
#sys.stdout.flush()
|
||||
|
||||
def thermostat_loop():
|
||||
start_time = time.time()
|
||||
last_control_time = None
|
||||
new_forced_mode = None
|
||||
target_name = default_target
|
||||
first_loop = True
|
||||
|
||||
while True:
|
||||
# if stop.is_set():
|
||||
# httpd.shutdown()
|
||||
|
Loading…
Reference in New Issue
Block a user