handle unknown devices slightly better

This commit is contained in:
Daniel Pavel 2013-07-12 20:30:46 +02:00
parent 876cf35954
commit 49d77a2f90
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ class PairedDevice(object):
if self._name is None:
if self.protocol >= 2.0 and self.online:
self._name = _hidpp20.get_name(self)
return self._name or ('Unknown device %s' % self.wpid)
return self._name or self.codename or ('Unknown device %s' % self.wpid)
@property
def kind(self):