tools: correct NetworkManager top object set_state function
Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com>
This commit is contained in:

committed by
Thomas Haller

parent
e27141fb90
commit
8dc64c7bdd
@@ -1562,8 +1562,8 @@ class NetworkManager(ExportedObj):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def set_state(self, new_state):
|
def set_state(self, new_state):
|
||||||
self._dbus_property_set(IFACE_NM, PRP_NM_STATE, state)
|
self._dbus_property_set(IFACE_NM, PRP_NM_STATE, new_state)
|
||||||
self.StateChanged(dbus.UInt32(self.state))
|
self.StateChanged(dbus.UInt32(new_state))
|
||||||
|
|
||||||
@dbus.service.method(dbus_interface=IFACE_NM, in_signature="", out_signature="ao")
|
@dbus.service.method(dbus_interface=IFACE_NM, in_signature="", out_signature="ao")
|
||||||
def GetDevices(self):
|
def GetDevices(self):
|
||||||
|
Reference in New Issue
Block a user