From e509ed07a08d35152b9eea6e263411dfc027867b Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sat, 25 Feb 2017 14:56:46 -0800 Subject: [PATCH] Revert "make more-info- tags in dynamicContentUpdater lowercase" (#221) --- src/more-infos/more-info-content.html | 2 +- src/util/hass-util.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/more-infos/more-info-content.html b/src/more-infos/more-info-content.html index 0c462bb7d3..67da253387 100644 --- a/src/more-infos/more-info-content.html +++ b/src/more-infos/more-info-content.html @@ -45,7 +45,7 @@ Polymer({ } } else { window.hassUtil.dynamicContentUpdater( - this, 'more-info-' + window.hassUtil.stateMoreInfoType(stateObj), + this, 'MORE-INFO-' + window.hassUtil.stateMoreInfoType(stateObj).toUpperCase(), { hass: this.hass, stateObj: stateObj, isVisible: true }); } }, diff --git a/src/util/hass-util.html b/src/util/hass-util.html index a08936bf1f..d5d6bc92d9 100644 --- a/src/util/hass-util.html +++ b/src/util/hass-util.html @@ -76,7 +76,7 @@ window.hassUtil.dynamicContentUpdater = function (root, newElementTag, attribute var rootEl = Polymer.dom(root); var customEl; - if (rootEl.lastChild && rootEl.lastChild.tagName.toLowerCase() === newElementTag) { + if (rootEl.lastChild && rootEl.lastChild.tagName === newElementTag) { customEl = rootEl.lastChild; } else { if (rootEl.lastChild) {