Fix case
This commit is contained in:
parent
9b58fed862
commit
a2bb66ad57
@ -122,7 +122,7 @@ class BTNap:
|
|||||||
device = ifaces.get(BTNap.IFACE_DEV)
|
device = ifaces.get(BTNap.IFACE_DEV)
|
||||||
if device is None:
|
if device is None:
|
||||||
continue
|
continue
|
||||||
if str(device['Address']) == device_address and path.startswith(path_prefix):
|
if str(device['Address']).lower() == device_address.lower() and path.startswith(path_prefix):
|
||||||
obj = bus.get_object(BTNap.IFACE_BASE, path)
|
obj = bus.get_object(BTNap.IFACE_BASE, path)
|
||||||
return dbus.Interface(obj, BTNap.IFACE_DEV)
|
return dbus.Interface(obj, BTNap.IFACE_DEV)
|
||||||
raise BTError('Bluetooth device not found')
|
raise BTError('Bluetooth device not found')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user