You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I Try to register my car it seems like my model has no max_elec_consumption attribute, also my model is not in car models, but this is already requested in the following PR #1018
To Reproduce
Steps to reproduce the behavior:
Start a docker container with the given command.
Set the config of the car.
submit and get a successful login.
Follow the instructions on Connection to PSA.
Get the code from the network tab and fill it in.
Then I see the error 'CarModel' object has no attribute 'max_elec_consumption'.
2025-01-01 15:33:18,674 :: WARNING :: Can't get car model, please report an issue on github with your car model and first ten letter of your VIN : VR3FMZKW3R
2025-01-01 15:33:18,674 :: ERROR :: finish_oauth:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/web/view/config_oauth.py", line 56, in finish_oauth
config_views.INITIAL_SETUP.connect(code)
File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/setup/app_decoder.py", line 114, in connect
res = self.psacc.get_vehicles()
File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psacc/application/psa_client.py", line 142, in get_vehicles
self.vehicles_list.add(Car(vehicle.vin, vehicle.id, vehicle.brand, vehicle.label))
File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psacc/model/car.py", line 28, in __init__
self.max_elec_consumption = max_elec_consumption or model.max_elec_consumption # kwh/100Km
AttributeError: 'CarModel' object has no attribute 'max_elec_consumption'
The text was updated successfully, but these errors were encountered:
Describe the bug
When I Try to register my car it seems like my model has no max_elec_consumption attribute, also my model is not in car models, but this is already requested in the following PR
#1018
To Reproduce
Steps to reproduce the behavior:
'CarModel' object has no attribute 'max_elec_consumption'
.Config file
Environment (please complete the following information):
Additional context
log from application:
The text was updated successfully, but these errors were encountered: