From 35e75b4aa7946f2d4112803b14430db489f97766 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 15 Jan 2018 12:07:48 +1000 Subject: [PATCH] ble: match the disconnected signal with 'connect' No need to pass self as argument, it's the first argument to the signal handler anyway --- tuhi/ble.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tuhi/ble.py b/tuhi/ble.py index ff4000a..3eef7cc 100755 --- a/tuhi/ble.py +++ b/tuhi/ble.py @@ -83,7 +83,7 @@ class BlueZDevice(GObject.Object): "connected": (GObject.SIGNAL_RUN_FIRST, None, ()), "disconnected": - (GObject.SIGNAL_RUN_FIRST, None, (GObject.TYPE_PYOBJECT,)), + (GObject.SIGNAL_RUN_FIRST, None, ()), } def __init__(self, om, obj): @@ -184,7 +184,7 @@ class BlueZDevice(GObject.Object): self.emit('connected') else: logger.info('Disconnected') - self.emit('disconnected', self) + self.emit('disconnected') def connect_gatt_value(self, uuid, callback): """