and here is the output. I replaced the email and other hashes with "XXXXX". Hopefully it will help
2022-07-19 06:11:51 DEBUG (MainThread) [custom_components.skodaconnect.config_flow] Creating connection to Skoda Connect
2022-07-19 06:11:51 INFO (MainThread) [skodaconnect.connection] Init Skoda Connect library, version 1.1.20
2022-07-19 06:11:51 DEBUG (MainThread) [skodaconnect.connection] Using service https://msg.volkswagen.de
2022-07-19 06:11:51 INFO (MainThread) [skodaconnect.connection] Initiating new login
2022-07-19 06:11:51 DEBUG (MainThread) [skodaconnect.connection] Starting authorization process for client skoda
2022-07-19 06:11:52 DEBUG (MainThread) [skodaconnect.connection] Got redirect to signin-service
2022-07-19 06:11:52 DEBUG (MainThread) [skodaconnect.connection] Start authorization for user XXXXXXXXXXXXXX
2022-07-19 06:11:52 DEBUG (MainThread) [skodaconnect.connection] Found dynamic credentials form, extracting attributes
2022-07-19 06:11:52 DEBUG (MainThread) [skodaconnect.connection] JSON: {'clientLegalEntityModel': {'clientId': 'XXXXXXXXXXXXXX@apps_vw-dilab_com', 'clientAppName': 'ŠKODA App & Portal', 'clientAppDisplayName': 'ŠKODA App & Portal', 'legalEntityInfo': {'name': 'ŠKODA', 'shortName': 'SKODA', 'productName': 'ŠKODA ID', 'theme': 'skoda', 'defaultLanguage': 'cs', 'termAndConditionsType': 'DEFAULT', 'legalProperties': {'revokeDataContact': 'DPOffice@skoda-auto.cz', 'imprintText': 'IMPRINT', 'countryOfJurisdiction': 'CZ'}}, 'imprintTextKey': 'imprint.link.text'}, 'template': 'loginAuthenticate', 'hmac': 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXX', 'useClientRendering': True, 'emailPasswordForm': {'@class': 'com.volkswagen.identitykit.signin.web.flows.base.model.EmailPasswordForm', 'email': 'XXXXXXXXXXXXXXXXXXXXX', 'password': None}, 'error': None, 'relayState': 'XXXXXXXXXXXXXXXXXXXXX', 'nextButtonDisabled': False, 'enableNextButtonAfterSeconds': 0, 'postAction': 'login/authenticate', 'identifierUrl': 'login/identifier'}
2022-07-19 06:11:52 DEBUG (MainThread) [skodaconnect.connection] Finalizing login
2022-07-19 06:11:53 WARNING (MainThread) [skodaconnect.connection] Login failed, the terms and conditions might have been updated and need to be accepted. Login to https://www.skoda-connect.com and accept the new terms before trying again
2022-07-19 06:11:53 ERROR (MainThread) [custom_components.skodaconnect.config_flow] Login failed with error: The terms and conditions must be accepted first at "https://www.skoda-connect.com/"
2022-07-19 06:13:11 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/config/custom_components/skodaconnect/config_flow.py", line 102, in _async_task_login
if result is False:
UnboundLocalError: local variable 'result' referenced before assignment
Thank you.
Thank you. I know where in the code it stops but I would need a full debug with response debugging enabled as well. That's done in the integration settings in Home Assistant.
Yes, it's exactly the same for me. Can you kick me right way, how to enable the full debug with response as you mentioned?
Thank you. I know where in the code it stops but I would need a full debug with response debugging enabled as well. That's done in the integration settings in Home Assistant.
Originally posted by @Farfar in https://github.com/lendy007/homeassistant-skodaconnect/issues/119#issuecomment-1188686052