device: allow for None reponse from kind request
This commit is contained in:
parent
3ef5e63cd4
commit
2f870fe0f7
|
@ -257,7 +257,8 @@ class Device(object):
|
|||
kind = ord(pair_info[7:8]) & 0x0F
|
||||
self._kind = _hidpp10.DEVICE_KIND[kind]
|
||||
elif self.online and self.protocol >= 2.0:
|
||||
self._kind = KIND_MAP[_hidpp20.get_kind(self)]
|
||||
kind = _hidpp20.get_kind(self)
|
||||
self._kind = KIND_MAP[kind] if kind else None
|
||||
return self._kind or '?'
|
||||
|
||||
@property
|
||||
|
|
Loading…
Reference in New Issue