From 28fb6cc4af5325c605bc36b29d7c9552313b2fa4 Mon Sep 17 00:00:00 2001 From: Hojjat Date: Wed, 18 Mar 2026 12:51:25 -0600 Subject: [PATCH] fix(bluetooth): call pair() for unpaired devices before connecting --- subscriptions/bluetooth/src/device.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subscriptions/bluetooth/src/device.rs b/subscriptions/bluetooth/src/device.rs index 5374c5a..e8777c0 100644 --- a/subscriptions/bluetooth/src/device.rs +++ b/subscriptions/bluetooth/src/device.rs @@ -240,6 +240,8 @@ pub async fn connect_device(connection: zbus::Connection, device_path: OwnedObje let result = async { if proxy.device.connected().await? { Ok(()) + } else if !proxy.device.paired().await.unwrap_or(false) { + proxy.device.pair().await } else { proxy.device.connect().await }