fix: fixed battery levels id for the Sensors widget (#1091)

This commit is contained in:
Serhiy Mytrovtsiy
2022-09-20 23:00:26 +02:00
parent 8524448192
commit 409640b261

View File

@@ -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)%"))
}
}
}