8000 Improve incorrect credentials handling for tss provisioning · Issue #1573 · python-kasa/python-kasa · GitHub
[go: up one dir, main page]

Skip to content

Improve incorrect credentials handling for tss provisioning #1573

@rytilahti

Description

@rytilahti

We frequently receive reports from users who have issues with credentials.
One of the most common cases, besides the mobile app users' uppercasing the first letter, is due to the provisioning through "tplink simple setup" (tss) where the newly provisioned devices do not accept the regular credentials.

Until, and if, we can handle TSS provisioned devices, we could inform the users better by:

  • Raising a separate exception (inheriting from the existing unauthorized exception) when credentials fail and the obd_source is set to tss
  • Catching this exception in the cli tool to inform the user and to provide more concrete instructions how to fix the situation
  • Catching this exception in the homeassistant integration to provide more concrete instructions how to fix the situation

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingno-stale

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0