Continue Flask migration.
This commit is contained in:
parent
031940a625
commit
13394334e9
@ -273,7 +273,7 @@ def thermostat_loop():
|
||||
xprint(new_forced_mode)
|
||||
if new_forced_mode is not None:
|
||||
with app.app_context():
|
||||
data = Set_mode({"value": new_forced_mode})
|
||||
data = Set_mode(value=new_forced_mode)
|
||||
db.session.add(data)
|
||||
db.session.commit()
|
||||
# try:
|
||||
|
Loading…
Reference in New Issue
Block a user