Skip to content

KeyError: 'token_expires_at' during config flow setup #11

Description

@davidmatta

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions