From 065cd325ad846164b18a7afe28dc158556c53fd5 Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Fri, 7 Jun 2024 20:51:27 +0200 Subject: [PATCH] Test api.doc. --- thermostat.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/thermostat.py b/thermostat.py index 50291b1..a9d1cc9 100755 --- a/thermostat.py +++ b/thermostat.py @@ -196,7 +196,7 @@ Set_mode_parser.add_argument( ) Set_mode_resource_fields = { - 'value': fields.String(required=True, description='Thermostat mode', enum=targets+modes), + 'value': fields.String(required=True, title='test', description='Thermostat mode', enum=targets+modes), } Set_mode_model = api.model('Set_mode_Model', Set_mode_resource_fields) @@ -211,6 +211,7 @@ class Set_mode_thermostat(Resource): @auth_required @api.expect(Set_mode_model, validate=True) @api.doc(description=set_mode_description) + @api.param('value', 'An ID') def post(self): global new_forced_mode try: