Include addresses of Bluetooth devices in the connection slots tooltip (#23928)

This commit is contained in:
J. Nick Koston 2025-01-28 20:21:34 -10:00 committed by GitHub
parent a638cf443d
commit c7d9699a24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -160,7 +160,9 @@ export class BluetoothConfigDashboard extends LitElement {
"ui.panel.config.bluetooth.used_connection_slot_allocations"
)}
.value=${this._getUsedAllocations(allocationsUsed, allocationsTotal)}
.tooltip=${`${allocationsUsed}/${allocationsTotal}`}
.tooltip=${allocations.allocated.length > 0
? `${allocationsUsed}/${allocationsTotal} (${allocations.allocated.join(", ")})`
: `${allocationsUsed}/${allocationsTotal}`}
></ha-metric>
`;
}