Add icons to automations dashboard (#14182)

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
Franck Nijhof 2022-10-25 12:26:41 +02:00 committed by GitHub
parent 68302d0896
commit 62ac9155fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View File

@ -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`<ha-state-icon .state=${automation}></ha-state-icon>`,
},
name: {
title: this.hass.localize(
"ui.panel.config.automation.picker.headers.name"

View File

@ -1837,7 +1837,8 @@
"toggle": "Enable/disable",
"name": "Name",
"trigger": "Trigger",
"actions": "Actions"
"actions": "Actions",
"state": "State"
}
},
"dialog_new": {