Skip to content

Klap protocol needs to retry after 403 error #784

@sdb9696

Description

@sdb9696

If a handshake session becomes invalid the device returns 403 on send and an AuthenticationError is raised which prevents a retry, however a retry would be successful. In HA this causes devices to go into reauth flow which is not necessary.

Steps to reproduce:

  1. Successfully add a klap device to HA
  2. Run dump_devinfo on the device which for some reason invalidates the HA session.
  3. Device goes into reauth flow and has to be re-authenticated.
    ERROR (MainThread) [kasa.klaptransport] Query failed after successful authentication

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions