mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-26 10:17:18 +00:00
fix saveconfig, add log info, handle exeption in app_decoder
This commit is contained in:
+1
-1
@@ -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())
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user