From 62ac9155fc3825b973129568307ab6fc6c004b90 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 25 Oct 2022 12:26:41 +0200 Subject: [PATCH] Add icons to automations dashboard (#14182) Co-authored-by: Bram Kragten --- src/panels/config/automation/ha-automation-picker.ts | 9 +++++++++ src/translations/en.json | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/panels/config/automation/ha-automation-picker.ts b/src/panels/config/automation/ha-automation-picker.ts index 2c8d9d3afa..9dff22d9ad 100644 --- a/src/panels/config/automation/ha-automation-picker.ts +++ b/src/panels/config/automation/ha-automation-picker.ts @@ -95,6 +95,15 @@ class HaAutomationPicker extends LitElement { private _columns = memoizeOne( (narrow: boolean, _locale): DataTableColumnContainer => { const columns: DataTableColumnContainer = { + icon: { + title: "", + label: this.hass.localize( + "ui.panel.config.automation.picker.headers.state" + ), + type: "icon", + template: (_, automation) => + html``, + }, name: { title: this.hass.localize( "ui.panel.config.automation.picker.headers.name" diff --git a/src/translations/en.json b/src/translations/en.json index fe9a6ca9e0..f6c91344e2 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -1837,7 +1837,8 @@ "toggle": "Enable/disable", "name": "Name", "trigger": "Trigger", - "actions": "Actions" + "actions": "Actions", + "state": "State" } }, "dialog_new": {