Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mwikberg-virta committed Aug 28, 2023
1 parent ed6306b commit e1c6476
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions custom_components/volkswagencarnet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ async def async_login(self) -> bool:
"""Login to Volkswagen WeConnect."""
# check if we can login
if not self.connection.logged_in:
await self.connection.doLogin(3)
await self.connection.doLogin(10)
if not self.connection.logged_in:
_LOGGER.warning(
"Could not login to volkswagen WeConnect, "
Expand All @@ -536,10 +536,11 @@ async def async_login(self) -> bool:
return True

async def update(self) -> Optional[Vehicle]:
_LOGGER.debug("Starting update")
"""Update status from Volkswagen WeConnect."""
# update vehicles
if not await self.connection.update():
_LOGGER.warning("Could not query update from volkswagen WeConnect")
_LOGGER.error("Could not query update from volkswagen WeConnect")
return None

_LOGGER.debug("Updating data from volkswagen WeConnect")
Expand Down

0 comments on commit e1c6476

Please sign in to comment.