Closed gavin0987 closed 3 years ago
Thanks for reporting, I never had this problem. I will catch this error in next version.
Thanks, I am not entirely sure why the mileage is not coming through in the first place. The MyVauxhall app shows the cars mileage so would expect the API call to return the value to your code.
fix in develop branch
It seems the Vauxhall API is not providing the mileage for my Vauxhall Corsa-E to this application.
When HomeAssistant calls psa_car_controller to get_vehicleinfo there is no data returned and I see a stack trace printed in the docker logs.
To Reproduce Steps to reproduce the behavior:
Config file Give the anonymize content of the config file
Environment (please complete the following information):
Additional context I have been working around the issue by editing the my_pssacc.py file and changing:
_mileage = car.status.timedodometer.mileage to mileage = 0
I am happy to run any tests as needed, just shout!