diff options
Diffstat (limited to 'cli/broadlink_discovery')
-rwxr-xr-x | cli/broadlink_discovery | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/broadlink_discovery b/cli/broadlink_discovery index 84d96dfec668..13c65e7a7f14 100755 --- a/cli/broadlink_discovery +++ b/cli/broadlink_discovery @@ -19,7 +19,8 @@ for device in devices: print "# broadlink_cli --type 0x2712 --host {} --mac {}".format(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 "0x2712 {} {}".format(device.host[0], ''.join(format(x, '02x') for x in device.mac)) - print "temperature = {}".format(device.check_temperature()) + if hasattr(device, 'check_temperature'): + print "temperature = {}".format(device.check_temperature()) print "" else: print "Error authenticating with device : {}".format(device.host) |