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

Unable to load Cupra We Connect after upgrade to HACS 2.0.3 and HA 2025.1.2 #111

Closed
peppers04 opened this issue Jan 17, 2025 · 2 comments
Closed

Comments

@peppers04
Copy link

Unable to load Cupra We Connect after upgrade to HACS 2.0.3 and HA 2025.1.2.

I got the following messages in the logfile:

2025-01-17 16:57:33.316 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Cupra We Connect for cupra_we_connect
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/cupra_we_connect/init.py", line 45, in async_setup_entry
await hass.async_add_executor_job(_we_connect.login)
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.13/site-packages/weconnect_cupra/weconnect_cupra.py", line 166, in login
self.__session.login()
~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/weconnect_cupra/api/cupra/auth/my_cupra_session.py", line 47, in login
response = self.doWebAuth(authorizationUrl)
File "/usr/local/lib/python3.13/site-packages/weconnect_cupra/api/cupra/auth/my_cupra_session.py", line 201, in doWebAuth
afterLoginResponse = self.get(afterLoginUrl, allow_redirects=False, access_type=AccessType.NONE)
File "/usr/local/lib/python3.13/site-packages/requests/sessions.py", line 602, in get
return self.request("GET", url, **kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/weconnect_cupra/api/cupra/auth/my_cupra_session.py", line 337, in request
raise InsecureTransportError()
oauthlib.oauth2.rfc6749.errors.InsecureTransportError: (insecure_transport) OAuth 2 MUST utilize https.

Any idea how to solve the problem?

@Boss-man
Copy link

Please see #103

@peppers04
Copy link
Author

Okay, it worked fine after I changed region and back again. Thought it was other issue at first.
Thanks :)

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

2 participants