1
0
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:
Felipe Martins Diel 2021-05-03 17:34:22 -03:00 committed by GitHub
parent c6390924bf
commit 1ae12e7d1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -148,14 +148,15 @@ def hello(
host: str,
port: int = DEFAULT_PORT,
timeout: int = DEFAULT_TIMEOUT,
local_ip_address: str = None,
) -> Device:
"""Direct device discovery.
Useful if the device is locked.
"""
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:
raise e.NetworkTimeoutError(
-4000,