From 8508e6208d2cc6ec0a49091bc256b27db0abd6ec Mon Sep 17 00:00:00 2001 From: Dag Stuan Date: Sun, 12 Nov 2023 21:39:24 +0100 Subject: [PATCH] URL Escape semicolons in vehicle_data endpoint 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. --- teslajsonpy/endpoints.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teslajsonpy/endpoints.json b/teslajsonpy/endpoints.json index f39e8708..db0b0a0d 100644 --- a/teslajsonpy/endpoints.json +++ b/teslajsonpy/endpoints.json @@ -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": {