From 766a814b59edc65c496000b384e0fdc87b806b07 Mon Sep 17 00:00:00 2001 From: Jacob Berelman <630000+stickpin@users.noreply.github.com> Date: Tue, 19 Dec 2023 23:00:58 +0100 Subject: [PATCH] quick bug fix --- volkswagencarnet/vw_connection.py | 2 +- volkswagencarnet/vw_vehicle.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/volkswagencarnet/vw_connection.py b/volkswagencarnet/vw_connection.py index 5d52421c..98951648 100644 --- a/volkswagencarnet/vw_connection.py +++ b/volkswagencarnet/vw_connection.py @@ -883,7 +883,7 @@ async def get_request_status(self, vin, sectionId, requestId, actionId = ""): status = "Failed" elif result == "unfetched": status = "No response" - elif result == "request_successful" or result == "succeeded": + elif result == "request_successful" or result == "successful": status = "Success" elif result == "fail_ignition_on": status = "Failed because ignition is on" diff --git a/volkswagencarnet/vw_vehicle.py b/volkswagencarnet/vw_vehicle.py index b8f60f21..b438f57d 100644 --- a/volkswagencarnet/vw_vehicle.py +++ b/volkswagencarnet/vw_vehicle.py @@ -336,7 +336,7 @@ async def wait_for_request(self, section, request, retry_count=36, action=""): self._requests["state"] = status if status == "In Progress": await asyncio.sleep(5) - return await self.wait_for_request(section, request, retry_count) + return await self.wait_for_request(section, request, retry_count, action) else: return status except Exception as error: