mirror of
https://github.com/sailfishos/ofono
synced 2025-11-30 22:51:06 +08:00
test: Update to the new Manager api
This commit is contained in:
@@ -7,14 +7,9 @@ bus = dbus.SystemBus()
|
||||
manager = dbus.Interface(bus.get_object('org.ofono', '/'),
|
||||
'org.ofono.Manager')
|
||||
|
||||
properties = manager.GetProperties()
|
||||
|
||||
for path in properties["Modems"]:
|
||||
modem = dbus.Interface(bus.get_object('org.ofono', path),
|
||||
'org.ofono.Modem')
|
||||
|
||||
properties = modem.GetProperties()
|
||||
modems = manager.GetModems()
|
||||
|
||||
for path, properties in modems:
|
||||
if "org.ofono.ConnectionManager" not in properties["Interfaces"]:
|
||||
continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user