receiver: change notification before status setup from assertion to warning
This commit is contained in:
parent
78a6ae9208
commit
44f85d5dee
|
@ -237,9 +237,12 @@ class ReceiverListener(_listener.EventsListener):
|
||||||
# the receiver changed status as well
|
# the receiver changed status as well
|
||||||
self._status_changed(self.receiver)
|
self._status_changed(self.receiver)
|
||||||
|
|
||||||
assert dev
|
if dev.status is None:
|
||||||
assert dev.status is not None
|
# notification before device status set up - don't process it
|
||||||
_notifications.process(dev, n)
|
_log.warn('%s before device %s has status', n, dev)
|
||||||
|
else:
|
||||||
|
_notifications.process(dev, n)
|
||||||
|
|
||||||
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 and n.address == 0x04
|
||||||
|
|
Loading…
Reference in New Issue