Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ElecModel after Connection to PSA #848

Open
MathiasWeisheit opened this issue Apr 11, 2024 · 1 comment
Open

ElecModel after Connection to PSA #848

MathiasWeisheit opened this issue Apr 11, 2024 · 1 comment

Comments

@MathiasWeisheit
Copy link

After inserting the code of the oauth2redirect, I received this warning "'ElecModel' object has no attribute 'battery_power'"".

To Reproduce
Steps to reproduce the behavior:

  1. Login
  2. Get Code from oauth2redirect
  3. Insert the "code" from oauth2redirect

Environment (please complete the following information):

  • Home Assitant
  • Opel (Astra e, and Zafira Life (without battery)
  • Log from http://server_address:port/log and browser console log

Log

2024-04-11 08:50:26,480 :: 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 26, in init
self.battery_power = battery_power or model.battery_power
AttributeError: 'ElecModel' object has no attribute 'battery_power'

@MathiasWeisheit
Copy link
Author

Do you need more information?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant