fix saveconfig, add log info, handle exeption in app_decoder

This commit is contained in:
Florian Bezannier
2020-12-23 14:47:54 +01:00
parent cac194e11c
commit 2e6e198419
4 changed files with 18 additions and 7 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ def charge_control():
charge_control.set_stop_hour([int(request.args["hour"]), int(request.args["minute"])])
if 'percentage' in request.args:
charge_control.percentage_threshold = int(request.args['percentage'])
save_config(myp)
myp.save_config()
return jsonify(charge_control.get_dict())