Setup fails with "Unknown error occurred" when entering
credentials in the config flow.
Environment:
- Home Assistant Core 2026.8.3
- Home Assistant OS 18.2 (Raspberry Pi 5)
- danalock_cloud v1.2.0 (installed via HACS)
Setup:
- Danalock V3 (model V3-BTZE, Z-Wave variant)
- Danabridge V3, online and paired
- Owner account, 2FA disabled
- Credentials verified by logging into the Danalock
web interface directly
Traceback:
File "/config/custom_components/danalock_cloud/config_flow.py",
line 90, in async_step_user
TOKEN_EXPIRES_AT: auth_result[TOKEN_EXPIRES_AT],
KeyError: 'token_expires_at'
The authentication call appears to succeed but the response
no longer contains a token_expires_at field, which suggests
the Danalock API response format may have changed.
Setup fails with "Unknown error occurred" when entering
credentials in the config flow.
Environment:
Setup:
web interface directly
Traceback:
File "/config/custom_components/danalock_cloud/config_flow.py",
line 90, in async_step_user
TOKEN_EXPIRES_AT: auth_result[TOKEN_EXPIRES_AT],
KeyError: 'token_expires_at'
The authentication call appears to succeed but the response
no longer contains a token_expires_at field, which suggests
the Danalock API response format may have changed.