cli: handle receivers with no firmware information
This commit is contained in:
parent
eda1399330
commit
1eef88eb44
|
@ -34,8 +34,9 @@ def _print_receiver(receiver):
|
||||||
print (' Device path :', receiver.path)
|
print (' Device path :', receiver.path)
|
||||||
print (' USB id : 046d:%s' % receiver.product_id)
|
print (' USB id : 046d:%s' % receiver.product_id)
|
||||||
print (' Serial :', receiver.serial)
|
print (' Serial :', receiver.serial)
|
||||||
for f in receiver.firmware:
|
if receiver.firmware:
|
||||||
print (' %-11s: %s' % (f.kind, f.version))
|
for f in receiver.firmware:
|
||||||
|
print (' %-11s: %s' % (f.kind, f.version))
|
||||||
|
|
||||||
print (' Has', paired_count, 'paired device(s) out of a maximum of %d.' % receiver.max_devices)
|
print (' Has', paired_count, 'paired device(s) out of a maximum of %d.' % receiver.max_devices)
|
||||||
if receiver.remaining_pairings() and receiver.remaining_pairings() >= 0 :
|
if receiver.remaining_pairings() and receiver.remaining_pairings() >= 0 :
|
||||||
|
|
Loading…
Reference in New Issue