Skip to content

Commit

Permalink
Fix bug where list of online vehicles not updated (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Mar 6, 2019
1 parent 6768552 commit 84c916c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion teslajsonpy/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def update(self, car_id=None, wake_if_asleep=False, force=False):
cars = self.get_vehicles()
for car in cars:
self._car_online[car['id']] = (car['state'] == 'online')
self._last_attempted_update_time = cur_time
self._last_attempted_update_time = cur_time
# Only update online vehicles that haven't been updated recently
# The throttling is per car's last succesful update
# Note: This separate check is because there may be individual cars
Expand Down

0 comments on commit 84c916c

Please sign in to comment.