10000 Klap protocol needs to retry after 403 error · Issue #784 · python-kasa/python-kasa · GitHub
[go: up one dir, main page]

Skip to content

Klap protocol needs to retry after 403 error #784

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sdb9696 opened this issue Feb 22, 2024 · 1 comment
Closed

Klap protocol needs to retry after 403 error #784

sdb9696 opened this issue Feb 22, 2024 · 1 comment
Milestone

Comments

@sdb9696
Copy link
Collaborator
sdb9696 commented Feb 22, 2024

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
@rytilahti
Copy link
Member

Fixed by #785

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0