jamesremuscat / pyze

Unofficial Python client and API for Renault ZE
MIT License
111 stars 29 forks source link

dirty workaround for cockpit #116

Closed philfry closed 4 months ago

philfry commented 4 months ago

/commerce/v1/accounts/xxx/kamereon/kca/car-adapter/v2/cars/xxx/cockpit?country=GB now returns

{"message": "you should not be there but well done for the effort"}

This PR skips invalid responses.

epenet commented 4 months ago

See https://github.com/hacf-fr/renault-api/pull/1145

philfry commented 4 months ago

ah, great! Thanks, I didn't know about this project.

epenet commented 4 months ago

My point was that this might still be valid. But instead of handling the error in a dirty way, you should modify the endpoint definition to use v1 not v2.

Edit: handled by jamesremuscat in 9e6a2552728d7977758cbfa7af4d6cf49c7f156a