From 38ff7da6e5a7aa1fcd5d39b84aa1d89c9cff50b5 Mon Sep 17 00:00:00 2001 From: Tim Dorssers Date: Fri, 10 Nov 2023 20:36:50 +0100 Subject: [PATCH] Fix for #147 and #148 --- teslapy/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/teslapy/__init__.py b/teslapy/__init__.py index 10bcebb..8b273ca 100644 --- a/teslapy/__init__.py +++ b/teslapy/__init__.py @@ -543,7 +543,9 @@ def option_code_list(self): def get_vehicle_data(self): """ A rollup of all the data request endpoints plus vehicle config. Raises HTTPError when vehicle is not online. """ - self.update(self.api('VEHICLE_DATA')['response']) + self.update(self.api('VEHICLE_DATA', endpoints='location_data;' + 'charge_state;climate_state;vehicle_state;' + 'gui_settings;vehicle_config')['response']) self.timestamp = time.time() return self