diff --git a/src/data/ssdp.ts b/src/data/ssdp.ts index a256ed4330..2b14e7ee01 100644 --- a/src/data/ssdp.ts +++ b/src/data/ssdp.ts @@ -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; diff --git a/src/panels/config/integrations/integration-panels/ssdp/dialog-ssdp-discovery-info.ts b/src/panels/config/integrations/integration-panels/ssdp/dialog-ssdp-discovery-info.ts index 313373cdac..f349b358a6 100644 --- a/src/panels/config/integrations/integration-panels/ssdp/dialog-ssdp-discovery-info.ts +++ b/src/panels/config/integrations/integration-panels/ssdp/dialog-ssdp-discovery-info.ts @@ -54,6 +54,8 @@ class DialogSSDPDiscoveryInfo extends LitElement implements HassDialog { )} >

+ ${this.hass.localize("ui.panel.config.ssdp.name")}: + ${this._params.entry.name}
${this.hass.localize("ui.panel.config.ssdp.ssdp_st")}: ${this._params.entry.ssdp_st}
${this.hass.localize("ui.panel.config.ssdp.ssdp_location")}: diff --git a/src/panels/config/integrations/integration-panels/ssdp/ssdp-config-panel.ts b/src/panels/config/integrations/integration-panels/ssdp/ssdp-config-panel.ts index f9703cac90..215205cfe8 100644 --- a/src/panels/config/integrations/integration-panels/ssdp/ssdp-config-panel.ts +++ b/src/panels/config/integrations/integration-panels/ssdp/ssdp-config-panel.ts @@ -57,14 +57,21 @@ export class SSDPConfigPanel extends SubscribeMixin(LitElement) { private _columns = memoizeOne( (localize: LocalizeFunc): DataTableColumnContainer => { const columns: DataTableColumnContainer = { - 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: { diff --git a/src/translations/en.json b/src/translations/en.json index 98070c9fd4..c704999f36 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -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",