mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
migrate nested triggers too (#22135)
This commit is contained in:
parent
7a60763786
commit
fef6f0ac94
@ -427,6 +427,10 @@ export const migrateAutomationTrigger = (
|
||||
return trigger.map(migrateAutomationTrigger) as Trigger[];
|
||||
}
|
||||
|
||||
if ("triggers" in trigger && trigger.triggers) {
|
||||
trigger.triggers = migrateAutomationTrigger(trigger.triggers);
|
||||
}
|
||||
|
||||
if ("platform" in trigger) {
|
||||
if (!("trigger" in trigger)) {
|
||||
// @ts-ignore
|
||||
|
Loading…
x
Reference in New Issue
Block a user