mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2025-12-20 09:00:03 +01:00
linux: Fix Bluetooth tests for python-dbusmock changes
This commit is contained in:
parent
0847d0c674
commit
37b6d4b039
2 changed files with 2 additions and 2 deletions
|
|
@ -1748,7 +1748,7 @@ class Tests(dbusmock.DBusTestCase):
|
|||
device = self.dbus_con.get_object('org.bluez', path)
|
||||
|
||||
if device_properties:
|
||||
device.AddProperties(DEVICE_IFACE, device_properties)
|
||||
device.UpdateProperties(DEVICE_IFACE, device_properties)
|
||||
|
||||
battery_properties = {
|
||||
'Percentage': dbus.Byte(battery_level, variant_level=1),
|
||||
|
|
|
|||
|
|
@ -183,7 +183,7 @@ up_device_bluez_coldplug (UpDevice *device)
|
|||
}
|
||||
|
||||
v = g_dbus_proxy_get_cached_property (proxy, "Appearance");
|
||||
if (v) {
|
||||
if (v && g_variant_get_uint16 (v) != 0) {
|
||||
guint16 appearance;
|
||||
|
||||
appearance = g_variant_get_uint16 (v);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue