mirror of https://github.com/tuhiproject/tuhi.git
dbus: add a __repr__ for the TuhiDBusDevice
And remove a now obsolete debugging statement, this was just put there to debug the PropertyChanged codepull/15/head
parent
e5d3da5590
commit
010c651d6f
|
@ -163,7 +163,6 @@ class TuhiDBusDevice(GObject.Object):
|
||||||
self.emit('pair-requested')
|
self.emit('pair-requested')
|
||||||
|
|
||||||
def _on_device_paired(self, device, pspec):
|
def _on_device_paired(self, device, pspec):
|
||||||
logger.debug('{}: is paired {}'.format(device, device.paired))
|
|
||||||
self.paired = device.paired
|
self.paired = device.paired
|
||||||
|
|
||||||
def _listen(self):
|
def _listen(self):
|
||||||
|
@ -188,6 +187,9 @@ class TuhiDBusDevice(GObject.Object):
|
||||||
self._connection.emit_signal(None, self.objpath, INTF_DEVICE,
|
self._connection.emit_signal(None, self.objpath, INTF_DEVICE,
|
||||||
"ButtonPressRequired", None)
|
"ButtonPressRequired", None)
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return "{} - {}".format(self.objpath, self.name)
|
||||||
|
|
||||||
|
|
||||||
class TuhiDBusServer(GObject.Object):
|
class TuhiDBusServer(GObject.Object):
|
||||||
"""
|
"""
|
||||||
|
@ -307,7 +309,6 @@ class TuhiDBusServer(GObject.Object):
|
||||||
return dev
|
return dev
|
||||||
|
|
||||||
def _on_device_paired(self, device, param):
|
def _on_device_paired(self, device, param):
|
||||||
logger.debug('dbus server {}: is paired {}'.format(device, device.paired))
|
|
||||||
props = GLib.VariantBuilder(GLib.VariantType('a{sv}'))
|
props = GLib.VariantBuilder(GLib.VariantType('a{sv}'))
|
||||||
|
|
||||||
objpaths = GLib.Variant.new_array(GLib.VariantType('o'),
|
objpaths = GLib.Variant.new_array(GLib.VariantType('o'),
|
||||||
|
|
Loading…
Reference in New Issue