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

Fail to setup #997

Open
maco2035 opened this issue Jan 2, 2025 · 2 comments
Open

Fail to setup #997

maco2035 opened this issue Jan 2, 2025 · 2 comments

Comments

@maco2035
Copy link

maco2035 commented Jan 2, 2025

Region and Brand of car
USA Ioniq 6 SEL, 2023

Version of the integration
2.31.2

Describe the bug
A clear and concise description of what the bug is.
I am unable to get it to startup. I changed the password a few weeks ago.
Failed setup, will retry: Config Not Ready: 'access_token'

Debug logs if an error occurred

Logger: custom_components.kia_uvo.coordinator
Source: helpers/update_coordinator.py:379
integration: Hyundai / Kia Connect (documentation, issues)
First occurred: December 30, 2024 at 12:53:20 PM (3315 occurrences)
Last logged: 2:59:10 PM

Unexpected error fetching kia_uvo data
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 379, 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 169, in async_check_and_refresh_token
    await self.hass.async_add_executor_job(
        self.vehicle_manager.check_and_refresh_token
    )
  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.13/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 136, in check_and_refresh_token
    self.initialize()
    ~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 75, in initialize
    self.token: Token = self.api.login(self.username, self.password)
                        ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/hyundai_kia_connect_api/HyundaiBlueLinkApiUSA.py", line 136, in login
    access_token = response["access_token"]
                   ~~~~~~~~^^^^^^^^^^^^^^^^
KeyError: 'access_token'

To Reproduce
Change your password

Expected behavior
It should allow me to relogin

@maco2035
Copy link
Author

maco2035 commented Jan 2, 2025

I am unable to change the password, if I add another account via add a hub. It tells me it is already setup. I really don't want to delete the current one, as the data for millage tracking I have been doing will be deleted.

@maco2035
Copy link
Author

Hey guys, it seems like the password change has somehow not allowed me to relogin. Is there anything that I can do about this? Without deleting the sensor?

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

1 participant