Skip to content

Commit

Permalink
missed some awaits
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverrahner committed Dec 19, 2023
1 parent 7f1e336 commit d6384af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions volkswagencarnet/vw_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ async def setWindowHeater(self, vin, action):

try:
response_raw = await self.post(f"{BASE_API}/vehicle/v1/vehicles/{vin}/windowheating/{action}", json={}, return_raw=True)
return self._handle_action_result(response_raw)
return await self._handle_action_result(response_raw)

except Exception as e:
raise Exception("Unknown error during setWindowHeater") from e
Expand Down Expand Up @@ -1172,7 +1172,7 @@ async def setLock(self, vin, lock, spin):

try:
response_raw = await self.post(f"{BASE_API}/vehicle/v1/vehicles/{vin}/access/{action}", json={"spin":spin}, return_raw=True)
return self._handle_action_result(response_raw)
return await self._handle_action_result(response_raw)

except Exception as e:
raise Exception("Unknown error during setLock") from e
Expand Down

0 comments on commit d6384af

Please sign in to comment.