Hello
I have been using the Kia/Uvo integration for 2 months with no problem until a few days ago it stopped working and started saying unavailable.
I removed the integration and when trying to re-install it I cannot configure it.
Here what happens:
The integration installation looks fine.
When I input username, password and PIN (I also set Europe and Kia as options) I get an “Unexpected error” message.
Username, pw and PIN are the same I use in the Android app and they do work.
The log content is as follows:
2023-04-05 07:27:22.190 ERROR (MainThread) [custom_components.kia_uvo.config_flow] Unexpected exception
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 203, in login
authorization_code = self._get_authorization_code_with_redirect_url(
File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 1146, in _get_authorization_code_with_redirect_url
parsed_url = urlparse(response["redirectUrl"])
KeyError: 'redirectUrl'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/kia_uvo/config_flow.py", line 159, in async_step_user
await validate_input(self.hass, user_input)
File "/config/custom_components/kia_uvo/config_flow.py", line 63, in validate_input
token: Token = await hass.async_add_executor_job(
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 208, in login
authorization_code = self._get_authorization_code_with_form(
File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 1239, in _get_authorization_code_with_form
intUserId = "".join(parse_qs(parsed_url.query)["int_user_id"])
KeyError: 'int_user_id'