mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-09 19:09:48 +00:00
Dont change config on init (#2044)
* dont change config on init * set default title empty * used firstUpdated instead of updated * prevent double events * check if val changed * typing * clean * lint * clean * prettier is having a fight
This commit is contained in:
committed by
Zack Arnett
parent
f054cdc9ef
commit
a82561355c
@@ -52,7 +52,7 @@ export class HuiEntityEditor extends LitElement {
|
||||
private _addEntity() {
|
||||
const newConfigEntities = this.entities!.concat({ entity: "" });
|
||||
|
||||
fireEvent(this, "change", { entities: newConfigEntities });
|
||||
fireEvent(this, "entities-changed", { entities: newConfigEntities });
|
||||
}
|
||||
|
||||
private _valueChanged(ev: Event): void {
|
||||
@@ -68,7 +68,7 @@ export class HuiEntityEditor extends LitElement {
|
||||
};
|
||||
}
|
||||
|
||||
fireEvent(this, "change", { entities: newConfigEntities });
|
||||
fireEvent(this, "entities-changed", { entities: newConfigEntities });
|
||||
}
|
||||
|
||||
private renderStyle(): TemplateResult {
|
||||
|
||||
Reference in New Issue
Block a user