Skip to content

Commit d70b68c

Browse files
authored
bluez5: Fix invalid arguments to PairDevice
The third (device class) argument to PairDevice was removed in 0.30.1, but this call to it was still passing a third parameter, resulting in an error from dbus-python whenever Pair() was called. This caused a unit test regression in gnome-bluetooth. Fixes: 63264e1 "bluez5: Clean up static default properties, re-drop PairDevice class_ parameter" Fixes #193 Bug-Debian: https://bugs.debian.org/1057564 Signed-off-by: Simon McVittie <[email protected]>
1 parent e991224 commit d70b68c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dbusmock/templates/bluez5.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def Pair(device):
333333
raise dbus.exceptions.DBusException("Device already paired", name="org.bluez.Error.AlreadyExists")
334334
device_address = device.props[DEVICE_IFACE]["Address"]
335335
adapter_device_name = Path(device.props[DEVICE_IFACE]["Adapter"]).name
336-
device.PairDevice(adapter_device_name, device_address, MOCK_PHONE_CLASS)
336+
device.PairDevice(adapter_device_name, device_address)
337337

338338

339339
@dbus.service.method(DEVICE_IFACE, in_signature="", out_signature="")

0 commit comments

Comments
 (0)