mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +00:00
Make name a top level field for the SSDP panel (#25232)
* Make name a top level field for the SSDP panel * Make name a top level field for the SSDP panel
This commit is contained in:
parent
92353ebed5
commit
5d2d6dcd6c
@ -7,6 +7,7 @@ import type { Store } from "home-assistant-js-websocket/dist/store";
|
||||
import type { DataTableRowData } from "../components/data-table/ha-data-table";
|
||||
|
||||
export interface SSDPDiscoveryData extends DataTableRowData {
|
||||
name: string | undefined;
|
||||
ssdp_usn: string;
|
||||
ssdp_st: string;
|
||||
upnp: Record<string, unknown>;
|
||||
|
@ -54,6 +54,8 @@ class DialogSSDPDiscoveryInfo extends LitElement implements HassDialog {
|
||||
)}
|
||||
>
|
||||
<p>
|
||||
<b>${this.hass.localize("ui.panel.config.ssdp.name")}</b>:
|
||||
${this._params.entry.name} <br />
|
||||
<b>${this.hass.localize("ui.panel.config.ssdp.ssdp_st")}</b>:
|
||||
${this._params.entry.ssdp_st} <br />
|
||||
<b>${this.hass.localize("ui.panel.config.ssdp.ssdp_location")}</b>:
|
||||
|
@ -57,14 +57,21 @@ export class SSDPConfigPanel extends SubscribeMixin(LitElement) {
|
||||
private _columns = memoizeOne(
|
||||
(localize: LocalizeFunc): DataTableColumnContainer => {
|
||||
const columns: DataTableColumnContainer<SSDPDiscoveryData> = {
|
||||
ssdp_st: {
|
||||
title: localize("ui.panel.config.ssdp.ssdp_st"),
|
||||
name: {
|
||||
title: localize("ui.panel.config.ssdp.name"),
|
||||
sortable: true,
|
||||
filterable: true,
|
||||
showNarrow: true,
|
||||
main: true,
|
||||
hideable: false,
|
||||
moveable: false,
|
||||
},
|
||||
ssdp_st: {
|
||||
title: localize("ui.panel.config.ssdp.ssdp_st"),
|
||||
sortable: true,
|
||||
filterable: true,
|
||||
showNarrow: true,
|
||||
hideable: false,
|
||||
direction: "asc",
|
||||
},
|
||||
ssdp_location: {
|
||||
|
@ -5568,6 +5568,7 @@
|
||||
"thread_network_delete_credentials": "Delete Thread network credentials"
|
||||
},
|
||||
"ssdp": {
|
||||
"name": "Name",
|
||||
"ssdp_st": "Search Target (ST)",
|
||||
"ssdp_location": "Device Description URL",
|
||||
"ssdp_headers": "SSDP Headers",
|
||||
|
Loading…
x
Reference in New Issue
Block a user