status: the device may be invalid when processing the unpair notification
This commit is contained in:
parent
8d522de7e7
commit
5785896007
|
|
@ -218,7 +218,7 @@ class DeviceStatus(dict):
|
||||||
def _changed(self, active=None, alert=ALERT.NONE, reason=None, timestamp=None):
|
def _changed(self, active=None, alert=ALERT.NONE, reason=None, timestamp=None):
|
||||||
assert self._changed_callback
|
assert self._changed_callback
|
||||||
d = self._device
|
d = self._device
|
||||||
assert d
|
# assert d # may be invalid when processing the 'unpaired' notification
|
||||||
|
|
||||||
if active is not None:
|
if active is not None:
|
||||||
d.online = active
|
d.online = active
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue