cli: ignore DJ pairing notifications in CLI pair command

This commit is contained in:
Peter F. Patel-Schneider 2020-09-24 17:34:38 -04:00
parent df8b6b488c
commit 0259e44c31
1 changed files with 1 additions and 1 deletions

View File

@ -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: