From 02886b846c80cc6c51d2743ec39d4e4b95403b0a Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Fri, 7 Jun 2024 19:09:33 +0200 Subject: [PATCH] Test api.doc. --- thermostat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thermostat.py b/thermostat.py index e77bfeb..50291b1 100755 --- a/thermostat.py +++ b/thermostat.py @@ -201,10 +201,10 @@ Set_mode_resource_fields = { Set_mode_model = api.model('Set_mode_Model', Set_mode_resource_fields) set_mode_description = 'Temporary forced modes (will stay in effect for '+str(int(forced_mode_duration))+' seconds):\n'\ - +'\n'.join(['# /'+target+'\n' for target in targets])\ + +'\n'.join(['- '+target+'\n' for target in targets])\ +'\n'\ +'Permanent forced modes:\n'\ - +'\n'.join(['# /'+mode+'\n' for mode in modes]) + +'\n'.join(['- '+mode+'\n' for mode in modes]) @ns_thermostat.route('/set_mode') class Set_mode_thermostat(Resource):