Fix payload format.
This commit is contained in:
parent
467e34eced
commit
f889641d59
@ -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 = api.parser()
|
||||||
Set_mode_parser.add_argument(
|
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')
|
@ns_thermostat.route('/set_mode')
|
||||||
|
Loading…
Reference in New Issue
Block a user