From 111357042679858cd4341304d3ba6c371cb4c9e1 Mon Sep 17 00:00:00 2001 From: stickpin <630000+stickpin@users.noreply.github.com> Date: Tue, 5 Dec 2023 11:28:28 +0100 Subject: [PATCH] Fix Login race condition --- volkswagencarnet/vw_connection.py | 1 + 1 file changed, 1 insertion(+) diff --git a/volkswagencarnet/vw_connection.py b/volkswagencarnet/vw_connection.py index 1d3b1dbd..19f65c3f 100644 --- a/volkswagencarnet/vw_connection.py +++ b/volkswagencarnet/vw_connection.py @@ -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: