From 1d3bf40a8cfa12d2ce42a540a74c75ad77b3eed7 Mon Sep 17 00:00:00 2001 From: Benjamin Tissoires Date: Mon, 29 Jan 2018 11:06:43 +0100 Subject: [PATCH] kete/prompt: do_fetch: allow for devices in pairable mode to be paired this is something quite useful actually --- tools/tuhi-kete.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/tuhi-kete.py b/tools/tuhi-kete.py index 14c1012..a35e86b 100755 --- a/tools/tuhi-kete.py +++ b/tools/tuhi-kete.py @@ -236,6 +236,10 @@ class TuhiKeteManager(_DBusObject): def devices(self): return [v for k, v in self._devices.items()] + @GObject.Property + def pairable_devices(self): + return [v for k, v in self._pairable_devices.items()] + @GObject.Property def searching(self): return self.proxy.get_cached_property('Searching') @@ -785,7 +789,7 @@ class TuhiKeteShell(cmd.Cmd): device = None - for d in self._manager.devices: + for d in self._manager.devices + self._manager.pairable_devices: if d.address == address: device = d break