mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-11-15 06:38:42 +00:00
Fix cli discover bug with None username/password (#615)
This commit is contained in:
@@ -395,7 +395,7 @@ async def discover(ctx):
|
||||
timeout = ctx.parent.params["timeout"]
|
||||
port = ctx.parent.params["port"]
|
||||
|
||||
credentials = Credentials(username, password)
|
||||
credentials = Credentials(username, password) if username and password else None
|
||||
|
||||
sem = asyncio.Semaphore()
|
||||
discovered = dict()
|
||||
|
||||
Reference in New Issue
Block a user