Skip to content

Commit

Permalink
fix post call with no wait after done
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuen Lee committed Sep 12, 2023
1 parent 4926b16 commit 10d5f53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/alfen_wallbox/alfen.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ async def _post(self, cmd, payload=None, allowed_login=True) -> ClientResponse |
_LOGGER.debug("POST with login")
await self.login()
return await self._post(cmd, payload, False)
self.wait = False
return response
except json.JSONDecodeError as e:
# skip tailing comma error from alfen
Expand Down

0 comments on commit 10d5f53

Please sign in to comment.