mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-02 05:57:54 +00:00
Remove yaml-change event on init
This commit is contained in:
parent
db92abad66
commit
c7d1417f48
@ -73,7 +73,6 @@ export class HuiYamlEditor extends HTMLElement {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
fireEvent(this, "yaml-changed", { value: this._value });
|
|
||||||
this.codemirror.on("changes", () => this._onChange());
|
this.codemirror.on("changes", () => this._onChange());
|
||||||
} else {
|
} else {
|
||||||
this.codemirror.refresh();
|
this.codemirror.refresh();
|
||||||
|
@ -357,6 +357,7 @@ export class HuiEditCard extends LitElement {
|
|||||||
configElement = await elClass.getConfigElement();
|
configElement = await elClass.getConfigElement();
|
||||||
} else {
|
} else {
|
||||||
this._configValue = { format: "yaml", value: yaml.safeDump(conf) };
|
this._configValue = { format: "yaml", value: yaml.safeDump(conf) };
|
||||||
|
this._updatePreview(conf);
|
||||||
this._uiEditor = false;
|
this._uiEditor = false;
|
||||||
this._configElement = null;
|
this._configElement = null;
|
||||||
return false;
|
return false;
|
||||||
@ -373,6 +374,7 @@ export class HuiEditCard extends LitElement {
|
|||||||
format: "yaml",
|
format: "yaml",
|
||||||
value: yaml.safeDump(conf),
|
value: yaml.safeDump(conf),
|
||||||
};
|
};
|
||||||
|
this._updatePreview(conf);
|
||||||
this._uiEditor = false;
|
this._uiEditor = false;
|
||||||
this._configElement = null;
|
this._configElement = null;
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user