Remove default actions/conditions from parallel and if actions (#13467)

This commit is contained in:
Franck Nijhof 2022-08-24 14:58:12 +02:00 committed by GitHub
parent 25e0c05723
commit ca91f71d2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 6 deletions

View File

@ -2,8 +2,6 @@ import { CSSResultGroup, html, LitElement } from "lit";
import { customElement, property } from "lit/decorators";
import { fireEvent } from "../../../../../common/dom/fire_event";
import { Action, IfAction } from "../../../../../data/script";
import { HaDeviceCondition } from "../../condition/types/ha-automation-condition-device";
import { HaDeviceAction } from "./ha-automation-action-device_id";
import { haStyle } from "../../../../../resources/styles";
import type { HomeAssistant } from "../../../../../types";
import type { Condition } from "../../../../lovelace/common/validate-condition";
@ -19,8 +17,8 @@ export class HaIfAction extends LitElement implements ActionElement {
public static get defaultConfig() {
return {
if: [{ ...HaDeviceCondition.defaultConfig, condition: "device" }],
then: [HaDeviceAction.defaultConfig],
if: [],
then: [],
};
}

View File

@ -2,7 +2,6 @@ import { CSSResultGroup, html, LitElement } from "lit";
import { customElement, property } from "lit/decorators";
import { fireEvent } from "../../../../../common/dom/fire_event";
import { Action, ParallelAction } from "../../../../../data/script";
import { HaDeviceAction } from "./ha-automation-action-device_id";
import { haStyle } from "../../../../../resources/styles";
import type { HomeAssistant } from "../../../../../types";
import "../ha-automation-action";
@ -17,7 +16,7 @@ export class HaParallelAction extends LitElement implements ActionElement {
public static get defaultConfig() {
return {
parallel: [HaDeviceAction.defaultConfig],
parallel: [],
};
}