device: Fix listing hidpp10 devices - bytes vs string concatenation (#2856)
* Fix listing hidpp10 devices - bytes vs string concatenation
Fix error concatenating a bytes with a string.
Closes #2855.
Fixes: 5e0c85a6
receiver: Refactor extraction of serial and max. devices
* Update lib/logitech_receiver/receiver.py
---------
Co-authored-by: Peter F. Patel-Schneider <pfpschneider@gmail.com>
This commit is contained in:
parent
abea1c4341
commit
7066ec40c9
|
@ -533,7 +533,7 @@ class Ex100Receiver(Receiver):
|
|||
online = True
|
||||
encrypted = bool(notification.data[0] & 0x80)
|
||||
kind = extract_device_kind(_get_kind_from_index(self, number))
|
||||
wpid = extract_wpid("00" + notification.data[2:3])
|
||||
wpid = "00" + extract_wpid(notification.data[2:3])
|
||||
return online, encrypted, wpid, kind
|
||||
|
||||
def device_pairing_information(self, number: int) -> dict:
|
||||
|
|
Loading…
Reference in New Issue