daernsinstantfortress / cupra_we_connect

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

Login gives unexpected error #73

Closed tariklehaine closed 4 months ago

tariklehaine commented 4 months ago

This error originated from a custom integration.

Logger: custom_components.cupra_we_connect.config_flow Source: custom_components/cupra_we_connect/config_flow.py:75 integration: Cupra WeConnect (documentation, issues) First occurred: 09:38:41 (1 occurrences) Last logged: 09:38:41

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

lordyavin commented 4 months ago

Duplicate of #62