mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
Make timeout adjustable (#494)
This commit is contained in:
@@ -166,7 +166,7 @@ async def _update_and_close(d):
|
||||
|
||||
|
||||
async def _discover_update_and_close(ip):
|
||||
d = await Discover.discover_single(ip)
|
||||
d = await Discover.discover_single(ip, timeout=10)
|
||||
return await _update_and_close(d)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user