From 409640b2613fac08ccec87f2d760da3e6375d07a Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Tue, 20 Sep 2022 23:00:26 +0200 Subject: [PATCH] fix: fixed battery levels id for the Sensors widget (#1091) --- Modules/Bluetooth/main.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Bluetooth/main.swift b/Modules/Bluetooth/main.swift index 24141121..6079ab45 100644 --- a/Modules/Bluetooth/main.swift +++ b/Modules/Bluetooth/main.swift @@ -81,7 +81,7 @@ public class Bluetooth: Module { active.forEach { (d: BLEDevice) in if d.state { d.batteryLevel.forEach { (p: KeyValue_t) in - list.append(KeyValue_t(key: p.key, value: "\(p.value)%")) + list.append(KeyValue_t(key: "\(d.address)-\(p.key)", value: "\(p.value)%")) } } }