From 96ad1dae38f7cf60fb2a9fb7df393b213c9a42fd Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sun, 9 Jul 2017 00:21:23 -0700 Subject: [PATCH] Polymer 2 fixes (#330) * Fix startup error in panel-resolver * Fix map panel stylesheet reference in develop mode under P2 * Fix automation editor recursion * Fix HA style --- panels/automation/ha-automation-editor.html | 3 +++ panels/map/ha-panel-map.html | 13 ++++++++++--- src/layouts/partial-panel-resolver.html | 2 +- src/resources/ha-style.html | 4 +++- 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/panels/automation/ha-automation-editor.html b/panels/automation/ha-automation-editor.html index c6eb04579a..12ac0ba440 100644 --- a/panels/automation/ha-automation-editor.html +++ b/panels/automation/ha-automation-editor.html @@ -160,6 +160,7 @@ Polymer({ created: function () { this.configChanged = this.configChanged.bind(this); + this._rendered = null; }, detached: function () { @@ -169,6 +170,8 @@ Polymer({ }, configChanged: function (config) { + // onChange gets called a lot during initial rendering causing recursing calls. + if (this._rendered === null) return; this.config = config; this.errors = null; this.dirty = true; diff --git a/panels/map/ha-panel-map.html b/panels/map/ha-panel-map.html index bd09088f67..5b2821a939 100644 --- a/panels/map/ha-panel-map.html +++ b/panels/map/ha-panel-map.html @@ -3,15 +3,17 @@ - -