diff --git a/src/panels/config/automation/action/ha-automation-action-row.ts b/src/panels/config/automation/action/ha-automation-action-row.ts index 06da9e19a7..7a63cf4bed 100644 --- a/src/panels/config/automation/action/ha-automation-action-row.ts +++ b/src/panels/config/automation/action/ha-automation-action-row.ts @@ -156,12 +156,15 @@ export default class HaAutomationActionRow extends LitElement { )} ` : ""} - + +
+ + ${capitalizeFirstLetter(describeAction(this.hass, this.action))} +
+ ${this.index !== 0 ? html` ` : ""} - + +
+ + ${capitalizeFirstLetter( + describeCondition(this.condition, this.hass) + )} +
+ ${this.hass.localize( "ui.panel.config.automation.editor.conditions.test" @@ -398,6 +404,10 @@ export default class HaAutomationConditionRow extends LitElement { --expansion-panel-summary-padding: 0 0 0 8px; --expansion-panel-content-padding: 0; } + .condition-icon { + color: var(--sidebar-icon-color); + padding-right: 8px; + } .card-content { padding: 16px; } diff --git a/src/panels/config/automation/trigger/ha-automation-trigger-row.ts b/src/panels/config/automation/trigger/ha-automation-trigger-row.ts index 2113207c2f..1af5b04e49 100644 --- a/src/panels/config/automation/trigger/ha-automation-trigger-row.ts +++ b/src/panels/config/automation/trigger/ha-automation-trigger-row.ts @@ -29,6 +29,7 @@ import { HaYamlEditor } from "../../../../components/ha-yaml-editor"; import { subscribeTrigger, Trigger } from "../../../../data/automation"; import { describeTrigger } from "../../../../data/automation_i18n"; import { validateConfig } from "../../../../data/config"; +import { TRIGGER_TYPES } from "../../../../data/trigger"; import { showAlertDialog, showConfirmationDialog, @@ -119,12 +120,14 @@ export default class HaAutomationTriggerRow extends LitElement { ` : ""} - + +
+ + ${capitalizeFirstLetter(describeTrigger(this.trigger, this.hass))} +