mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Fix automation trigger condition and triggers description (#22122)
* Fix config.triggers in automation-contition-trigger * Fix config.triggers for automation triggers description
This commit is contained in:
parent
e778a9aa1d
commit
570ad38bac
@ -94,8 +94,8 @@ export class HaTriggerCondition extends LitElement {
|
||||
|
||||
private _automationUpdated(config?: AutomationConfig) {
|
||||
const seenIds = new Set();
|
||||
this._triggers = config?.trigger
|
||||
? ensureArray(config.trigger).filter(
|
||||
this._triggers = config?.triggers
|
||||
? ensureArray(config.triggers).filter(
|
||||
(t) => t.id && (seenIds.has(t.id) ? false : seenIds.add(t.id))
|
||||
)
|
||||
: [];
|
||||
|
@ -78,7 +78,7 @@ export class HaManualAutomationEditor extends LitElement {
|
||||
></ha-icon-button>
|
||||
</a>
|
||||
</div>
|
||||
${!ensureArray(this.config.trigger)?.length
|
||||
${!ensureArray(this.config.triggers)?.length
|
||||
? html`<p>
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.automation.editor.triggers.description"
|
||||
|
Loading…
x
Reference in New Issue
Block a user