Fix payload format.

This commit is contained in:
yohan 2024-06-06 13:48:13 +02:00
parent 467e34eced
commit f889641d59

View File

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