receiver: permit connection notifications that are not unifying

This commit is contained in:
Peter F. Patel-Schneider 2020-09-16 07:59:29 -04:00
parent 8b5d56feb4
commit ad57db4a39
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ class ReceiverListener(_listener.EventsListener):
if self.receiver.status.lock_open and not already_known: if self.receiver.status.lock_open and not already_known:
# this should be the first notification after a device was paired # this should be the first notification after a device was paired
assert n.sub_id == 0x41 and n.address == 0x04 assert n.sub_id == 0x41, 'first notification was not a connection notification'
if _log.isEnabledFor(_INFO): if _log.isEnabledFor(_INFO):
_log.info('%s: pairing detected new device', self.receiver) _log.info('%s: pairing detected new device', self.receiver)
self.receiver.status.new_device = dev self.receiver.status.new_device = dev