tools: correct NetworkManager top object set_state function

Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com>
This commit is contained in:
Frederic Martinsons
2021-06-15 18:33:14 +02:00
committed by Thomas Haller
parent e27141fb90
commit 8dc64c7bdd

View File

@@ -1562,8 +1562,8 @@ class NetworkManager(ExportedObj):
pass
def set_state(self, new_state):
self._dbus_property_set(IFACE_NM, PRP_NM_STATE, state)
self.StateChanged(dbus.UInt32(self.state))
self._dbus_property_set(IFACE_NM, PRP_NM_STATE, new_state)
self.StateChanged(dbus.UInt32(new_state))
@dbus.service.method(dbus_interface=IFACE_NM, in_signature="", out_signature="ao")
def GetDevices(self):