diff options
author | Daniel Høyer Iversen <mail@dahoiv.net> | 2019-10-02T06·25+0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-02T06·25+0300 |
commit | 2e5361bd8ee470b35884538914a2e3bc579ec1c5 (patch) | |
tree | b5c4e48b082741c47aa98fda0c7e008d84a9fcc4 /cli/broadlink_discovery | |
parent | 11c5981793f4a9b23ebceaf0ac2efdd74187c192 (diff) |
Remove support for pyaes (#281)
* remove support for pyaes * remove support for pyaes * remove support for pyaes
Diffstat (limited to 'cli/broadlink_discovery')
-rwxr-xr-x | cli/broadlink_discovery | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/broadlink_discovery b/cli/broadlink_discovery index 74f36ed51fa5..1edbafcbecc6 100755 --- a/cli/broadlink_discovery +++ b/cli/broadlink_discovery @@ -1,10 +1,10 @@ #!/usr/bin/env python -import broadlink -import time import argparse -parser = argparse.ArgumentParser(fromfile_prefix_chars='@'); +import broadlink + +parser = argparse.ArgumentParser(fromfile_prefix_chars='@') parser.add_argument("--timeout", type=int, default=5, help="timeout to wait for receiving discovery responses") parser.add_argument("--ip", default=None, help="ip address to use in the discovery") args = parser.parse_args() @@ -15,7 +15,8 @@ for device in devices: if device.auth(): print("###########################################") print(device.type) - print("# broadlink_cli --type {} --host {} --mac {}".format(hex(device.devtype), device.host[0], ''.join(format(x, '02x') for x in device.mac))) + print("# broadlink_cli --type {} --host {} --mac {}".format(hex(device.devtype), device.host[0], + ''.join(format(x, '02x') for x in device.mac))) print("Device file data (to be used with --device @filename in broadlink_cli) : ") print("{} {} {}".format(hex(device.devtype), device.host[0], ''.join(format(x, '02x') for x in device.mac))) if hasattr(device, 'check_temperature'): @@ -23,4 +24,3 @@ for device in devices: print("") else: print("Error authenticating with device : {}".format(device.host)) - |