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')