FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Simplify instance creation API · Issue #927 · python-kasa/python-kasa · GitHub

Repository navigation

Simplify instance creation API #927

Closed

Description

Instead of requiring to import Credentials from the kasa package, we should allow creating instances without it.
@sdb9696 suggested to allow passing the username and the password as kwargs, which sounds like a good idea:

from kasa import Discover

dev = Discover.discover_single("127.0.0.1", username="foo", password="bar")
devs = Discover.discover(target="192.168.0.255", username="foo", password="bar")

Activity

  1. added this to the 0.7.0 milestone on May 21, 2024
  2. sdb9696 commented on May 24, 2024

    Contributor
  3. added a commit that references this issue on Jun 5, 2024
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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL