mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-17 23:10:44 +00:00
Change defaults of automations to device (#4843)
* Change defaults of automations to device * Script too * Update device_automation.ts * Update device_automation.ts
This commit is contained in:
@@ -29,6 +29,7 @@ import { HomeAssistant, Route } from "../../../types";
|
||||
import "../automation/action/ha-automation-action";
|
||||
import { computeObjectId } from "../../../common/entity/compute_object_id";
|
||||
import { configSections } from "../ha-panel-config";
|
||||
import { HaDeviceAction } from "../automation/action/types/ha-automation-action-device_id";
|
||||
|
||||
export class HaScriptEditor extends LitElement {
|
||||
@property() public hass!: HomeAssistant;
|
||||
@@ -193,7 +194,7 @@ export class HaScriptEditor extends LitElement {
|
||||
this._dirty = initData ? true : false;
|
||||
this._config = {
|
||||
alias: this.hass.localize("ui.panel.config.script.editor.default_name"),
|
||||
sequence: [{ service: "" }],
|
||||
sequence: [{ ...HaDeviceAction.defaultConfig }],
|
||||
...initData,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user