Use super to construct dbus.service.Object
Change-Id: I830decfc523d435c6b9ecdc9ffffec7956c3b85d
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/pysensormgr/sensor_manager2.py b/pysensormgr/sensor_manager2.py
index 9a4bc08..4095618 100644
--- a/pysensormgr/sensor_manager2.py
+++ b/pysensormgr/sensor_manager2.py
@@ -19,9 +19,9 @@
class SensorManager(DbusProperties, DbusObjectManager):
def __init__(self, bus, name):
- DbusProperties.__init__(self)
- DbusObjectManager.__init__(self)
- dbus.service.Object.__init__(self, bus, name)
+ super(SensorManager, self).__init__(
+ conn=bus,
+ object_path=name)
@dbus.service.method(
DBUS_NAME, in_signature='ss', out_signature='')