kia_uvo: Fails on boot

Region and Brand of car EUR, Hyunday Ioniq 5 Version of the integration 2.16.3

Describe the bug A clear and concise description of what the bug is. The integration fails at boot and it does not help to reload or redownload. Debug logs if an error occurred

Logger: homeassistant.config_entries
Source: config_entries.py:402
First occurred: 19:39:23 (1 occurrences)
Last logged: 19:39:23

Error setting up entry Hyundai Europe simon.hallberg@me.com for kia_uvo
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 402, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/kia_uvo/__init__.py", line 53, in async_setup_entry
    await coordinator.async_config_entry_first_refresh()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 265, in async_config_entry_first_refresh
    await self._async_refresh(
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/kia_uvo/coordinator.py", line 107, in _async_update_data
    await self.async_check_and_refresh_token()
  File "/config/custom_components/kia_uvo/coordinator.py", line 166, in async_check_and_refresh_token
    await self.hass.async_add_executor_job(
asyncio.exceptions.CancelledError: Global task timeout

To Reproduce No idea.

Expected behavior Load.

About this issue

  • Original URL
  • State: open
  • Created 6 months ago
  • Reactions: 2
  • Comments: 15 (4 by maintainers)

Most upvoted comments

Thanks, apparently kia/Hyundai had changed something again so we should try to reverse engineer the new stuff to make it work.

Please stand by but it will take time

I’m getting some additionalerror informaton: `Unexpected error fetching kia_uvo data: ‘redirectUrl’ Traceback (most recent call last): File “/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py”, line 237, in login authorization_code = self._get_authorization_code_with_redirect_url( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py”, line 1184, 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 “/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py”, line 300, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/config/custom_components/kia_uvo/coordinator.py”, line 107, in _async_update_data await self.async_check_and_refresh_token() File “/config/custom_components/kia_uvo/coordinator.py”, line 166, in async_check_and_refresh_token await self.hass.async_add_executor_job( File “/usr/local/lib/python3.11/concurrent/futures/thread.py”, line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/VehicleManager.py”, line 124, in check_and_refresh_token self.initialize() File “/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/VehicleManager.py”, line 68, in initialize self.token: Token = self.api.login(self.username, self.password) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py”, line 242, in login authorization_code = self._get_authorization_code_with_form( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py”, line 1282, in _get_authorization_code_with_form parsed_url = urlparse(response[“redirectUrl”]) ~~~~~~~~^^^^^^^^^^^^^^^ KeyError: ‘redirectUrl’`

Up and running again. Strange.