mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-21 08:56:29 +00:00
style: fix
This commit is contained in:
@@ -186,6 +186,7 @@ def settings_section(section: str):
|
||||
APP.config.write_config()
|
||||
return json_response(config_section.json())
|
||||
|
||||
|
||||
@app.route('/vehicles/trips')
|
||||
def get_trips():
|
||||
try:
|
||||
@@ -208,6 +209,7 @@ def get_chargings():
|
||||
logger.debug("Failed to get chargings, there is probably not enough data yet:", exc_info=True)
|
||||
return jsonify([])
|
||||
|
||||
|
||||
@app.route('/settings')
|
||||
def settings():
|
||||
return json_response(APP.config.json())
|
||||
|
||||
Reference in New Issue
Block a user