mirror of
https://github.com/mjg59/python-broadlink.git
synced 2024-11-21 22:51:41 +01:00
Remove local_ip_address option from hello() (#591)
This commit is contained in:
parent
c6390924bf
commit
1ae12e7d1c
@ -148,14 +148,15 @@ def hello(
|
|||||||
host: str,
|
host: str,
|
||||||
port: int = DEFAULT_PORT,
|
port: int = DEFAULT_PORT,
|
||||||
timeout: int = DEFAULT_TIMEOUT,
|
timeout: int = DEFAULT_TIMEOUT,
|
||||||
local_ip_address: str = None,
|
|
||||||
) -> Device:
|
) -> Device:
|
||||||
"""Direct device discovery.
|
"""Direct device discovery.
|
||||||
|
|
||||||
Useful if the device is locked.
|
Useful if the device is locked.
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
return next(xdiscover(timeout, local_ip_address, host, port))
|
return next(
|
||||||
|
xdiscover(timeout=timeout, discover_ip_address=host, discover_ip_port=port)
|
||||||
|
)
|
||||||
except StopIteration as err:
|
except StopIteration as err:
|
||||||
raise e.NetworkTimeoutError(
|
raise e.NetworkTimeoutError(
|
||||||
-4000,
|
-4000,
|
||||||
|
Loading…
Reference in New Issue
Block a user