diff options
Diffstat (limited to 'test/test-ss-control-cb')
-rwxr-xr-x | test/test-ss-control-cb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/test-ss-control-cb b/test/test-ss-control-cb index 7b5bc2f0..f855635f 100755 --- a/test/test-ss-control-cb +++ b/test/test-ss-control-cb @@ -22,12 +22,9 @@ if __name__ == "__main__": manager = dbus.Interface(bus.get_object('org.ofono', '/'), 'org.ofono.Manager') - try: - modems = manager.GetProperties()['Modems'] - except dbus.DBusException, e: - print "Unable to get the Modems property %s" % e + modems = manager.GetModems() - cb = dbus.Interface(bus.get_object('org.ofono', modems[0]), + cb = dbus.Interface(bus.get_object('org.ofono', modems[0][0]), 'org.ofono.CallBarring') cb.connect_to_signal("PropertyChanged", property_changed) |