Skip to content

Commit

Permalink
Fix where eta_waypoint_lat/lng were carried over from historical trips
Browse files Browse the repository at this point in the history
  • Loading branch information
flosoft committed Sep 12, 2024
1 parent 5390ca6 commit 2def400
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ def carstate(shortuuid):
provider = BackendProviderFactory.get_instance()
provider.refresh_data()

# Reset temp_carstate to make sure we don't carry over information from past trips or other cars
temp_carstate = None

temp_carstate = vars(provider)

# Check if ETA destination is similar and use Tesla provided destination if it's within 250m
Expand Down

0 comments on commit 2def400

Please sign in to comment.