Skip to content

Commit

Permalink
Fix for #147 and #148
Browse files Browse the repository at this point in the history
  • Loading branch information
tdorssers committed Nov 10, 2023
1 parent ae596b7 commit 38ff7da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion teslapy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 38ff7da

Please sign in to comment.