mirror of
https://github.com/mjg59/python-broadlink.git
synced 2024-11-21 14:43:30 +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,
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user