skodaconnect / myskoda

Python library for interacting with MySkoda APIs.
MIT License
9 stars 22 forks source link

Make the REST API wait for the result #91

Closed OBerghmans closed 1 month ago

OBerghmans commented 1 month ago

Make the REST API wait for the result before returning the client response.

The _make_request now waits until the text() is there before returning the ClientResponse object. This prevents the connection being closed too early.

Making the _make_request method await on the text() also removes the need for post and put methods to do this.

This solves #90