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

Unknown error during setup #958

Open
Frankenberrypi opened this issue Nov 1, 2024 · 5 comments
Open

Unknown error during setup #958

Frankenberrypi opened this issue Nov 1, 2024 · 5 comments

Comments

@Frankenberrypi
Copy link

Frankenberrypi commented Nov 1, 2024

Region and Brand of car
US, Hyundai

Version of the integration
2.28.1

Describe the bug
On setup the GUI reports "Unknown error occurred"

Debug logs if an error occurred

Logger: homeassistant.config_entries
Source: config_entries.py:594
First occurred: 11:44:08 AM (1 occurrences)
Last logged: 11:44:08 AM

Error setting up entry Hyundai USA [email protected] for kia_uvo
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/kia_uvo/__init__.py", line 52, in async_setup_entry
    await coordinator.async_config_entry_first_refresh()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 281, in async_config_entry_first_refresh
    await self._async_refresh(
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 354, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/kia_uvo/coordinator.py", line 126, in _async_update_data
    await self.hass.async_add_executor_job(
asyncio.exceptions.CancelledError

To Reproduce
Setup a new instance selecting the US region and Hyundai brand.

Expected behavior
Add new device.

Screenshots
image

Additional context
My best guess is that this has something to do with authorization. When I log with the app or website it asks to send a verification code via text or email, maybe that's missing now.

@cdnninja
Copy link
Collaborator

cdnninja commented Nov 1, 2024

This doesn't support mfa. Maybe try disable that and see if it works?

@Frankenberrypi
Copy link
Author

I was unable to find a setting in my account, so contacted support. Their response was "Due to the security of your account, we cannot disable or turn off two-factor authentication." I can't think of any other workarounds.

@drbroccoli
Copy link

I was unable to find a setting in my account, so contacted support. Their response was "Due to the security of your account, we cannot disable or turn off two-factor authentication." I can't think of any other workarounds.

I've discovered this integration and have the exact same issue. As far as I know Hyundai requires 2FA on ALL accounts now, there is no way to disable. Does this mean this integration dies?

@cdnninja
Copy link
Collaborator

It means someone in the USA needs to sniff the traffic. See how the mfa prompt impacts the calls and create the code.

I assume it doesn't mfa all the time for the mobile app just first login?

If it does all the time then yes would kill this since every few days would need a redo.

@drbroccoli
Copy link

It means someone in the USA needs to sniff the traffic. See how the mfa prompt impacts the calls and create the code.

I assume it doesn't mfa all the time for the mobile app just first login?

If it does all the time then yes would kill this since every few days would need a redo.

Ah, you are correct, it does not ask for MFA every time you open it, just the initial login. I am in the USA with a Hyundai, not really sure what I am doing but I am happy to help if I can!

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

3 participants