Continue Flask migration.

This commit is contained in:
yohan 2024-06-03 01:41:19 +02:00
parent 031940a625
commit 13394334e9

View File

@ -273,7 +273,7 @@ def thermostat_loop():
xprint(new_forced_mode) xprint(new_forced_mode)
if new_forced_mode is not None: if new_forced_mode is not None:
with app.app_context(): with app.app_context():
data = Set_mode({"value": new_forced_mode}) data = Set_mode(value=new_forced_mode)
db.session.add(data) db.session.add(data)
db.session.commit() db.session.commit()
# try: # try: