diff --git a/src/components/data-table/ha-data-table.ts b/src/components/data-table/ha-data-table.ts
index 05283fb7db..3bd894e288 100644
--- a/src/components/data-table/ha-data-table.ts
+++ b/src/components/data-table/ha-data-table.ts
@@ -98,6 +98,8 @@ export class HaDataTable extends LitElement {
@property({ type: String }) public noDataText?: string;
+ @property({ type: String }) public searchLabel?: string;
+
@property({ type: String }) public filter = "";
@internalProperty() private _filterable = false;
@@ -202,6 +204,7 @@ export class HaDataTable extends LitElement {
`
diff --git a/src/panels/config/integrations/integration-panels/zha/zha-clusters-data-table.ts b/src/panels/config/integrations/integration-panels/zha/zha-clusters-data-table.ts
index 3354b0f80f..96fd1e679a 100644
--- a/src/panels/config/integrations/integration-panels/zha/zha-clusters-data-table.ts
+++ b/src/panels/config/integrations/integration-panels/zha/zha-clusters-data-table.ts
@@ -93,6 +93,8 @@ export class ZHAClustersDataTable extends LitElement {
selectable
auto-height
.dir=${computeRTLDirection(this.hass)}
+ .searchLabel=${this.hass.localize("ui.components.data-table.search")}
+ .noDataText=${this.hass.localize("ui.components.data-table.no-data")}
>
`;
}
diff --git a/src/panels/config/integrations/integration-panels/zha/zha-device-endpoint-data-table.ts b/src/panels/config/integrations/integration-panels/zha/zha-device-endpoint-data-table.ts
index b316805b31..0a12acabe6 100644
--- a/src/panels/config/integrations/integration-panels/zha/zha-device-endpoint-data-table.ts
+++ b/src/panels/config/integrations/integration-panels/zha/zha-device-endpoint-data-table.ts
@@ -149,6 +149,8 @@ export class ZHADeviceEndpointDataTable extends LitElement {
.selectable=${this.selectable}
auto-height
.dir=${computeRTLDirection(this.hass)}
+ .searchLabel=${this.hass.localize("ui.components.data-table.search")}
+ .noDataText=${this.hass.localize("ui.components.data-table.no-data")}
>
`;
}
diff --git a/src/panels/lovelace/editor/unused-entities/hui-unused-entities.ts b/src/panels/lovelace/editor/unused-entities/hui-unused-entities.ts
index 28f114ae97..27dc450346 100644
--- a/src/panels/lovelace/editor/unused-entities/hui-unused-entities.ts
+++ b/src/panels/lovelace/editor/unused-entities/hui-unused-entities.ts
@@ -176,6 +176,12 @@ export class HuiUnusedEntities extends LitElement {
selectable
@selection-changed=${this._handleSelectionChanged}
.dir=${computeRTLDirection(this.hass)}
+ .searchLabel=${this.hass.localize(
+ "ui.panel.lovelace.unused_entities.search"
+ )}
+ .noDataText=${this.hass.localize(
+ "ui.panel.lovelace.unused_entities.no_data"
+ )}
>
${this._selectedEntities.length
diff --git a/src/translations/en.json b/src/translations/en.json
index eae41c298b..516d7cb605 100755
--- a/src/translations/en.json
+++ b/src/translations/en.json
@@ -335,7 +335,8 @@
"automation": "Part of the following automations"
},
"data-table": {
- "search": "Search"
+ "search": "Search",
+ "no-data": "No data"
}
},
"dialogs": {
@@ -1829,7 +1830,9 @@
"entity": "Entity",
"entity_id": "Entity ID",
"domain": "Domain",
- "last_changed": "Last Changed"
+ "last_changed": "Last Changed",
+ "search": "Search entities",
+ "no_data": "No unused entities found"
},
"add_entities": {
"yaml_unsupported": "You cannot use this function when using Lovelace UI in YAML mode.",