From ad57db4a39cca0de1d2cc00afb6277a6336e4ceb Mon Sep 17 00:00:00 2001 From: "Peter F. Patel-Schneider" Date: Wed, 16 Sep 2020 07:59:29 -0400 Subject: [PATCH] receiver: permit connection notifications that are not unifying --- lib/solaar/listener.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/solaar/listener.py b/lib/solaar/listener.py index 6df55ab6..56417050 100644 --- a/lib/solaar/listener.py +++ b/lib/solaar/listener.py @@ -246,7 +246,7 @@ class ReceiverListener(_listener.EventsListener): if self.receiver.status.lock_open and not already_known: # 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): _log.info('%s: pairing detected new device', self.receiver) self.receiver.status.new_device = dev