mirror of
https://github.com/home-assistant/frontend
synced 2024-09-28 00:43:28 +02:00
Remove default actions/conditions from parallel and if actions (#13467)
This commit is contained in:
parent
25e0c05723
commit
ca91f71d2e
@ -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: [],
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -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: [],
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user