From f889641d59cd9521037988b8ec7dce8fa4df63c3 Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Thu, 6 Jun 2024 13:48:13 +0200 Subject: [PATCH] Fix payload format. --- thermostat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thermostat.py b/thermostat.py index df59429..39a1649 100644 --- a/thermostat.py +++ b/thermostat.py @@ -204,7 +204,7 @@ cursor.execute("CREATE TABLE IF NOT EXISTS set_mode (name TEXT PRIMARY KEY DEFAU Set_mode_parser = api.parser() Set_mode_parser.add_argument( - "value", type=str, choices=targets+modes, required=True, help="value", location="form" + "value", type=str, choices=targets+modes, required=True, help="value", location="json" ) @ns_thermostat.route('/set_mode')