cli: ignore DJ pairing notifications in CLI pair command
This commit is contained in:
parent
df8b6b488c
commit
0259e44c31
|
@ -55,7 +55,7 @@ def run(receivers, args, find_receiver, _ignore):
|
||||||
assert n
|
assert n
|
||||||
if n.devnumber == 0xFF:
|
if n.devnumber == 0xFF:
|
||||||
_notifications.process(receiver, n)
|
_notifications.process(receiver, n)
|
||||||
elif n.sub_id == 0x41: # allow for other protocols! (was and n.address == 0x04)
|
elif n.sub_id == 0x41 and len(n.data) == _base._SHORT_MESSAGE_SIZE - 4:
|
||||||
kd, known_devices = known_devices, None # only process one connection notification
|
kd, known_devices = known_devices, None # only process one connection notification
|
||||||
if kd is not None:
|
if kd is not None:
|
||||||
if n.devnumber not in kd:
|
if n.devnumber not in kd:
|
||||||
|
|
Loading…
Reference in New Issue