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

Token issue #161

Closed ronaldt80 closed 1 year ago

ronaldt80 commented 1 year ago

Describe the bug Whilst the earlier login issue is resolved there are still some issues with the token.

Latest working release If the problem started after updating to a new release, please state latest working release. The integration no longer updates the entities after a while. Triggered in this case by a service call (charging limit) the integration spits out errors. A manual reload of the integration temporarily restores the functionality (including triggering service calls) but after a period of time (30-60 minutes I estimate) the issue returns.

Debug logs

2023-01-03 15:41:42.423 WARNING (MainThread) [skodaconnect.connection] Something went wrong when refreshing tokens for "connect".
2023-01-03 15:41:42.424 WARNING (MainThread) [skodaconnect.connection] Could not fetch air-conditioning, error: Failed to set token for "connect"
2023-01-03 15:41:42.442 WARNING (MainThread) [skodaconnect.connection] Something went wrong when refreshing tokens for "technical".
2023-01-03 15:41:42.443 WARNING (MainThread) [skodaconnect.connection] Could not fetch position, error: Failed to set token for "technical"
2023-01-03 15:41:42.454 WARNING (MainThread) [skodaconnect.connection] Something went wrong when refreshing tokens for "connect".
2023-01-03 15:41:42.455 WARNING (MainThread) [skodaconnect.connection] Could not fetch SmartLink vehicle status, error: Failed to set token for "connect"
2023-01-03 15:41:42.468 WARNING (MainThread) [skodaconnect.connection] Something went wrong when refreshing tokens for "connect".
2023-01-03 15:41:42.469 WARNING (MainThread) [skodaconnect.connection] Could not fetch charging, error: Failed to set token for "connect"
2023-01-03 15:41:42.483 WARNING (MainThread) [skodaconnect.connection] Something went wrong when refreshing tokens for "connect".
2023-01-03 15:41:42.484 WARNING (MainThread) [skodaconnect.connection] Could not fetch timers, error: Failed to set token for "connect"

Installation: HA-OS 9.4 Core 2022.12.9 Supervisor 2022.12.1

Additional context Add any other context about the problem here .

Farfar commented 1 year ago

Found the issue, will be fixed in next release.

ronaldt80 commented 1 year ago

Brilliant!

MarcoGos commented 1 year ago

Thanks @Farfar for fixing this.