Merge pull request #290 from verybadsoldier/invert-online-bit
Fixes #289.
This commit is contained in:
commit
1edd8a577b
|
@ -80,7 +80,7 @@ class PairedDevice(object):
|
|||
# _log.debug("new PairedDevice(%s, %s, %s)", receiver, number, link_notification)
|
||||
|
||||
if link_notification is not None:
|
||||
self.online = bool(ord(link_notification.data[0:1]) & 0x40)
|
||||
self.online = not bool(ord(link_notification.data[0:1]) & 0x40)
|
||||
self.wpid = _strhex(link_notification.data[2:3] + link_notification.data[1:2])
|
||||
# assert link_notification.address == (0x04 if unifying else 0x03)
|
||||
kind = ord(link_notification.data[0:1]) & 0x0F
|
||||
|
|
Loading…
Reference in New Issue