From 7066ec40c9c0485ffc7c2ed486161c3abbaa827c Mon Sep 17 00:00:00 2001 From: Alban Browaeys Date: Tue, 22 Apr 2025 14:47:26 +0200 Subject: [PATCH] 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 --- lib/logitech_receiver/receiver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/logitech_receiver/receiver.py b/lib/logitech_receiver/receiver.py index cea5458d..99ec83a8 100644 --- a/lib/logitech_receiver/receiver.py +++ b/lib/logitech_receiver/receiver.py @@ -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: