Skip to content

Commit

Permalink
URL Escape semicolons in vehicle_data endpoint
Browse files Browse the repository at this point in the history
For some reason, the Tesla API sometimes do not return all the data
unless the semicolons in the endpoints parameter are URL encoded.

Replace ; with %3B which is the URL encoded value.
  • Loading branch information
dagstuan committed Nov 12, 2023
1 parent 7b7fc9c commit 8508e62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion teslajsonpy/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"VEHICLE_DATA": {
"TYPE": "GET",
"URI": "api/1/vehicles/{vehicle_id}/vehicle_data?endpoints=charge_state;climate_state;drive_state;gui_settings;vehicle_config;vehicle_state;location_data",
"URI": "api/1/vehicles/{vehicle_id}/vehicle_data?endpoints=charge_state%3Bclimate_state%3Bdrive_state%3Bgui_settings%3Bvehicle_config%3Bvehicle_state%3Blocation_data",
"AUTH": true
},
"VEHICLE_SERVICE_DATA": {
Expand Down

0 comments on commit 8508e62

Please sign in to comment.