Skip to content

Commit

Permalink
Merge pull request #41 from flosoft/multiple-cars
Browse files Browse the repository at this point in the history
Fix where eta_waypoint_lat/lng were carried over from historical trips
  • Loading branch information
flosoft authored Sep 12, 2024
2 parents 87a3b67 + 2def400 commit 34418bb
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 34418bb

Please sign in to comment.