skodaconnect / homeassistant-skodaconnect

Skoda Connect - A home assistant plugin to add integration with your car
Apache License 2.0
232 stars 28 forks source link

Changing credentials locks account #92

Closed jmkraan74 closed 2 years ago

jmkraan74 commented 2 years ago

When changing the credentials in Skoda Connect, the HA integration keeps trying to log on w the old credentials until Skoda locks the account.

Two log entries:

Log entry1:

Logger: skodaconnect.connection Source: /usr/local/lib/python3.9/site-packages/skodaconnect/connection.py:306 First occurred: 20 november 2021 15:02:14 (1 occurrences) Last logged: 20 november 2021 15:02:14

Your account is locked, probably because of too many incorrect login attempts. Make sure that your account is not in use somewhere with incorrect password

Log entry2:

Deze fout is ontstaan door een aangepaste integratie.

Logger: homeassistant.config_entries Source: custom_components/skodaconnect/init.py:790 Integration: Skoda Connect First occurred: 20 november 2021 15:02:14 (1 occurrences) Last logged: 20 november 2021 15:02:14

Error setting up entry Enyaq for skodaconnect Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 304, in async_setup result = await component.async_setup_entry(hass, self) # type: ignore File "/config/custom_components/skodaconnect/init.py", line 142, in async_setup_entry if not await coordinator.async_login(): File "/config/custom_components/skodaconnect/init.py", line 790, in async_login if await self.connection.doLogin() is False: File "/usr/local/lib/python3.9/site-packages/skodaconnect/connection.py", line 136, in doLogin return await self._authorize('skoda') File "/usr/local/lib/python3.9/site-packages/skodaconnect/connection.py", line 222, in _authorize raise SkodaAccountLockedException(f'Account is locked for another {timeout} seconds') skodaconnect.exceptions.SkodaAccountLockedException: Account is locked for another 6 seconds

Farfar commented 2 years ago

The latest release, 1.0.63, have fix for this. It's untested though.

Farfar commented 2 years ago

@jmkraan74 can you please confirm if this issue is resolved?

jmkraan74 commented 2 years ago

Yes it is fixed 🙏

Farfar commented 2 years ago

Awesome! Thanks for feedback 🙂