diff --git a/src/components/ha-label-badge.html b/src/components/ha-label-badge.html index 52a2f569c7..5de816787a 100644 --- a/src/components/ha-label-badge.html +++ b/src/components/ha-label-badge.html @@ -130,7 +130,7 @@ Polymer({ }, imageChanged: function (newVal) { - this.$.badge.style.backgroundImage = newVal ? `url(${newVal})` : ''; + this.$.badge.style.backgroundImage = newVal ? 'url(' + newVal + ')' : ''; }, }); \ No newline at end of file diff --git a/src/components/ha-view-tabs.html b/src/components/ha-view-tabs.html index bacd01a6d4..47fb81ce36 100644 --- a/src/components/ha-view-tabs.html +++ b/src/components/ha-view-tabs.html @@ -68,15 +68,17 @@ Polymer({ }, }, - viewTapped() { + viewTapped: function () { this.fire('view-tapped'); }, - viewSelected(ev) { + viewSelected: function (ev) { var view = ev.detail.item.getAttribute('data-entity') || null; var current = this.currentView || null; if (view !== current) { - this.async(function () { this.hass.viewActions.selectView(view); }.bind(this), 0); + this.async(function () { + this.hass.viewActions.selectView(view); + }.bind(this), 0); } }, }); diff --git a/src/home-assistant.html b/src/home-assistant.html index 4c40dd1f44..3df52b5d94 100644 --- a/src/home-assistant.html +++ b/src/home-assistant.html @@ -81,7 +81,7 @@ Polymer({ this.iconsLoaded = true; }.bind(this); - this.importHref(`/static/mdi-${this.icons}.html`, + this.importHref('/static/mdi-' + this.icons + '.html', success, function () { this.importHref('/static/mdi.html', success, success); diff --git a/src/more-infos/more-info-camera.html b/src/more-infos/more-info-camera.html index 9f4c39b9c4..4f4dc88d7e 100644 --- a/src/more-infos/more-info-camera.html +++ b/src/more-infos/more-info-camera.html @@ -39,8 +39,8 @@ Polymer({ if (hass.demo) { return '/demo/webcam.jpg'; } else if (stateObj) { - return `/api/camera_proxy_stream/${stateObj.entityId}` + - `?token=${stateObj.attributes.access_token}`; + return '/api/camera_proxy_stream/' + stateObj.entityId + + '?token=' + stateObj.attributes.access_token; } // Return an empty image if no stateObj (= dialog not open) return 'data:image/gif;base64,R0lGODlhAQABAAAAACw='; diff --git a/src/state-summary/state-card-input_select.html b/src/state-summary/state-card-input_select.html index 638e87e551..11ba9cbb9d 100644 --- a/src/state-summary/state-card-input_select.html +++ b/src/state-summary/state-card-input_select.html @@ -69,7 +69,7 @@ Polymer({ return; } this.hass.serviceActions.callService('input_select', 'select_option', { - option, + option: option, entity_id: this.stateObj.entityId, }); }, diff --git a/src/util/hass-behavior.html b/src/util/hass-behavior.html index 86f09ee48d..8931a17d85 100644 --- a/src/util/hass-behavior.html +++ b/src/util/hass-behavior.html @@ -16,7 +16,7 @@ window.hassBehavior = { var getter = this.properties[key].bindNuclear(hass); if (!getter) { - throw new Error(`Undefined getter specified for key ${key}`); + throw new Error('Undefined getter specified for key ' + key); } this[key] = hass.reactor.evaluate(getter);