audiconnect / audi_connect_ha

Adds an audi connect integration to home assistant
MIT License
227 stars 98 forks source link

fix: More 403 Handling #389

Closed coreywillwhat closed 5 months ago

coreywillwhat commented 5 months ago

Primary Purpose

refresh_vehicle_data is currently returning 403. Similar to other functions, like get_trip_data and get_climater we should check once and disable further tries until a Home Assistant restart. This not only will prevent a user from over polling a forbidden request, it will also increase responsiveness by not waiting for a response each time.

Other Code Cleanup

Kolbi commented 5 months ago

Tested & working for me.

Tested the case with ClientResponseError 403 :D