Skip to content

Commit

Permalink
Fix Login race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
stickpin authored Dec 5, 2023
1 parent c54e05b commit 1113570
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions volkswagencarnet/vw_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ async def doLogin(self, tries: int = 1):
# Add Vehicle class object for all VIN-numbers from account
if loaded_vehicles.get("data") is not None:
_LOGGER.debug("Found vehicle(s) associated with account.")
self._vehicles = []
for vehicle in loaded_vehicles.get("data"):
self._vehicles.append(Vehicle(self, vehicle.get("vin")))
else:
Expand Down

0 comments on commit 1113570

Please sign in to comment.