daernsinstantfortress / cupra_we_connect

Cupra integration for Home Assistant
Apache License 2.0
60 stars 8 forks source link

Installation Problem #72

Open Dengo91 opened 4 months ago

Dengo91 commented 4 months ago

Hi all,

if i trying to set up the Intigration i get the Following Problem. The Intigration was working a couple of weeks befor then i have same problems and i tryed to reinstall it and now i cant login again...

Logger: custom_components.cupra_we_connect.config_flow Quelle: custom_components/cupra_we_connect/config_flow.py:75 Integration: cupra_we_connect (Dokumentation, Probleme) Erstmals aufgetreten: 07:56:05 (1 Vorkommnisse) Zuletzt protokolliert: 07:56:05

Unexpected exception during setup Traceback (most recent call last): File "/config/custom_components/cupra_we_connect/config_flow.py", line 75, in async_step_user info = await validate_input(self.hass, user_input) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/cupra_we_connect/config_flow.py", line 50, in validate_input await hass.async_add_executor_job(we_connect.login) File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/weconnect_cupra/weconnect_cupra.py", line 166, in login self.__session.login() File "/usr/local/lib/python3.12/site-packages/weconnect_cupra/api/cupra/auth/my_cupra_session.py", line 47, in login response = self.doWebAuth(authorizationUrl) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/weconnect_cupra/api/cupra/auth/my_cupra_session.py", line 191, in doWebAuth raise APICompatibilityError('No user id provided') weconnect_cupra.errors.APICompatibilityError: No user id provided

anthony-wang commented 4 months ago

Same issue on my side. Integration was running fine on v0.8.2.

Steps I took:

  1. Upgrade to v0.8.4
  2. Reboot HAOS

Expectation: Cupra WeConnect integration to function properly as it has.

Observed: Saw the same errors in the log as @Dengo91 reported above.

I also tried to then delete the "device" in the WeConnect integration and set-up again, but was not able to because of an unknown error.

  File "/usr/local/lib/python3.12/site-packages/weconnect_cupra/api/cupra/auth/my_cupra_session.py", line 191, in doWebAuth
    raise APICompatibilityError('No user id provided')
weconnect_cupra.errors.APICompatibilityError: No user id provided

Environment:

daernsinstantfortress commented 4 months ago

Logout of official cupra app and log back in. Accept all legal disclaimer popups and it will probably work again.

anthony-wang commented 4 months ago

Logout of official cupra app and log back in. Accept all legal disclaimer popups and it will probably work again.

Thank you @daernsinstantfortress, doing the steps as you wrote in your message fixed the issue for me!