A lot of newer Logitech devices support both the BATT Bluetooth LE service as well the HID++ protocol. This advertises 2 separate battery interfaces, one HID++ one through the kernel, one BATT one through BlueZ.
Avoid confusing UIs and hide the Bluetooth battery from the interface by checking for duplicates each time a new device is added.
Closes: #166
778b93a linux: Hide duplicate Logitech Bluetooth devices
src/linux/up-backend.c | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
Upstream: cgit.freedesktop.org