From 3a3cc2316009c5eabbc4db533415bd2c0ca9a57b Mon Sep 17 00:00:00 2001 From: MatthieuTexier Date: Thu, 21 Mar 2024 18:35:47 +0100 Subject: [PATCH] add location_data endpoint to vehicleData function --- teslajs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teslajs.js b/teslajs.js index c55d175..c6a8455 100644 --- a/teslajs.js +++ b/teslajs.js @@ -736,11 +736,11 @@ exports.vehicleData = function vehicleData(options, args, callback){ - closures_state - drive_state - gui_settings - - location_state + - location_data - vehicle_state - vehicle_config */ - var endpoints = args?.endpoints ?? [ 'climate_state', 'charge_state', 'drive_state', 'gui_settings', 'vehicle_state', 'vehicle_config' ] + var endpoints = args?.endpoints ?? [ 'climate_state', 'charge_state', 'drive_state', 'gui_settings', 'vehicle_state', 'vehicle_config', 'location_data' ] if (Array.isArray(endpoints)) { endpoints = endpoints.join(';'); } /* null or true