From 13394334e97605dddd8445b35d7c403358151f90 Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Mon, 3 Jun 2024 01:41:19 +0200 Subject: [PATCH] Continue Flask migration. --- thermostat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: