diff --git a/panels/config/automation/ha-automation-editor.html b/panels/config/automation/ha-automation-editor.html index 9397b691ee..85cffe0585 100644 --- a/panels/config/automation/ha-automation-editor.html +++ b/panels/config/automation/ha-automation-editor.html @@ -165,8 +165,8 @@ class HaAutomationEditor extends window.hassMixins.EventsMixin(Polymer.Element) }; } - constructor() { - super(); + ready() { + super.ready(); this.configChanged = this.configChanged.bind(this); this._rendered = null; } diff --git a/panels/config/script/ha-script-editor.html b/panels/config/script/ha-script-editor.html index fadfbbfa7d..0b82213bfa 100644 --- a/panels/config/script/ha-script-editor.html +++ b/panels/config/script/ha-script-editor.html @@ -164,8 +164,8 @@ class HaScriptEditor extends window.hassMixins.EventsMixin(Polymer.Element) { }; } - constructor() { - super(); + ready() { + super.ready(); this.configChanged = this.configChanged.bind(this); this._rendered = null; }