mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-01 13:37:47 +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());
|
||||
} else {
|
||||
this.codemirror.refresh();
|
||||
|
@ -357,6 +357,7 @@ export class HuiEditCard extends LitElement {
|
||||
configElement = await elClass.getConfigElement();
|
||||
} else {
|
||||
this._configValue = { format: "yaml", value: yaml.safeDump(conf) };
|
||||
this._updatePreview(conf);
|
||||
this._uiEditor = false;
|
||||
this._configElement = null;
|
||||
return false;
|
||||
@ -373,6 +374,7 @@ export class HuiEditCard extends LitElement {
|
||||
format: "yaml",
|
||||
value: yaml.safeDump(conf),
|
||||
};
|
||||
this._updatePreview(conf);
|
||||
this._uiEditor = false;
|
||||
this._configElement = null;
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user