mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 18:56:39 +00:00
Small fixes for Bluetooth device info (#24436)
* Add missing service uuids to Bluetooth device info Service UUIDs are different from Service data because they do not have any data attached to them. I only discovered that they were missing in the UI because of helping a user troubleshoot of device, and we could not find the Service UUID * fix mapping * fix mapping * fix mapping * tweaks
This commit is contained in:
parent
ef964fd23e
commit
c1f2e6d82b
@ -81,10 +81,8 @@ class DialogBluetoothDeviceInfo extends LitElement implements HassDialog {
|
|||||||
${Object.entries(this._params.entry.manufacturer_data).map(
|
${Object.entries(this._params.entry.manufacturer_data).map(
|
||||||
([key, value]) => html`
|
([key, value]) => html`
|
||||||
<tr>
|
<tr>
|
||||||
${key}
|
<td><b>${key}</b></td>
|
||||||
</tr>
|
<td>${this.showDataAsHex(value)}</td>
|
||||||
<tr>
|
|
||||||
${this.showDataAsHex(value)}
|
|
||||||
</tr>
|
</tr>
|
||||||
`
|
`
|
||||||
)}
|
)}
|
||||||
@ -97,10 +95,23 @@ class DialogBluetoothDeviceInfo extends LitElement implements HassDialog {
|
|||||||
${Object.entries(this._params.entry.service_data).map(
|
${Object.entries(this._params.entry.service_data).map(
|
||||||
([key, value]) => html`
|
([key, value]) => html`
|
||||||
<tr>
|
<tr>
|
||||||
${key}
|
<td><b>${key}</b></td>
|
||||||
|
<td>${this.showDataAsHex(value)}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
`
|
||||||
|
)}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<h4>
|
||||||
|
${this.hass.localize("ui.panel.config.bluetooth.service_uuids")}
|
||||||
|
</h4>
|
||||||
|
<table width="100%">
|
||||||
|
<tbody>
|
||||||
|
${this._params.entry.service_uuids.map(
|
||||||
|
(uuid) => html`
|
||||||
<tr>
|
<tr>
|
||||||
${this.showDataAsHex(value)}
|
<td>${uuid}</td>
|
||||||
</tr>
|
</tr>
|
||||||
`
|
`
|
||||||
)}
|
)}
|
||||||
|
@ -5377,6 +5377,7 @@
|
|||||||
"advertisement_data": "Advertisement data",
|
"advertisement_data": "Advertisement data",
|
||||||
"manufacturer_data": "Manufacturer data",
|
"manufacturer_data": "Manufacturer data",
|
||||||
"service_data": "Service data",
|
"service_data": "Service data",
|
||||||
|
"service_uuids": "Service UUIDs",
|
||||||
"copy_to_clipboard": "[%key:ui::panel::config::automation::editor::copy_to_clipboard%]"
|
"copy_to_clipboard": "[%key:ui::panel::config::automation::editor::copy_to_clipboard%]"
|
||||||
},
|
},
|
||||||
"thread": {
|
"thread": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user