diff --git a/thermostat.py b/thermostat.py index ad4f3d2..ae263ed 100644 --- a/thermostat.py +++ b/thermostat.py @@ -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: