diff --git a/homeassistant/components/frontend/__init__.py b/homeassistant/components/frontend/__init__.py
index 7dbe56f1fa4..29f6ef577e5 100644
--- a/homeassistant/components/frontend/__init__.py
+++ b/homeassistant/components/frontend/__init__.py
@@ -361,7 +361,8 @@ class IndexView(HomeAssistantView):
core_url=core_url, ui_url=ui_url,
compatibility_url=compatibility_url, no_auth=no_auth,
icons_url=icons_url, icons=FINGERPRINTS['mdi.html'],
- panel_url=panel_url, panels=hass.data[DATA_PANELS])
+ panel_url=panel_url, panels=hass.data[DATA_PANELS],
+ dev_mode=request.app[KEY_DEVELOPMENT])
return web.Response(text=resp, content_type='text/html')
diff --git a/homeassistant/components/frontend/templates/index.html b/homeassistant/components/frontend/templates/index.html
index f385d89c9aa..6420bb79739 100644
--- a/homeassistant/components/frontend/templates/index.html
+++ b/homeassistant/components/frontend/templates/index.html
@@ -89,6 +89,9 @@
}
+ {% if not dev_mode %}
+
+ {% endif %}
{% if panel_url -%}
@@ -103,7 +106,7 @@
var e = document.createElement('script');
e.async = true;
e.onerror = initError;
- e.src = '/static/webcomponents-lite.min.js';
+ e.src = '/static/webcomponents-lite.js';
document.head.appendChild(e);
}
diff --git a/homeassistant/components/frontend/version.py b/homeassistant/components/frontend/version.py
index f1a06e67034..52bb5d9c1b5 100644
--- a/homeassistant/components/frontend/version.py
+++ b/homeassistant/components/frontend/version.py
@@ -3,15 +3,15 @@
FINGERPRINTS = {
"compatibility.js": "1686167ff210e001f063f5c606b2e74b",
"core.js": "2a7d01e45187c7d4635da05065b5e54e",
- "frontend.html": "e4dcb1409ba0a62be183a7f0a057b7c0",
+ "frontend.html": "da3a65fd69361319864767a3ce0b4b9d",
"mdi.html": "e91f61a039ed0a9936e7ee5360da3870",
"micromarkdown-js.html": "93b5ec4016f0bba585521cf4d18dec1a",
- "panels/ha-panel-automation.html": "88e18b827b67027641f92e5dd099ca8c",
- "panels/ha-panel-config.html": "1ff806daf588a2836260d9f600bc7caf",
+ "panels/ha-panel-automation.html": "6c3a3345b63f3a36d32f43cff3e10c53",
+ "panels/ha-panel-config.html": "59ca4cda820260616e9de5324edf6d05",
"panels/ha-panel-dev-event.html": "d409e7ab537d9fe629126d122345279c",
"panels/ha-panel-dev-info.html": "b0e55eb657fd75f21aba2426ac0cedc0",
"panels/ha-panel-dev-mqtt.html": "94b222b013a98583842de3e72d5888c6",
- "panels/ha-panel-dev-service.html": "a260b4ef948bbac503451f139c7f9e98",
+ "panels/ha-panel-dev-service.html": "61b164e0c0964782a539cba7008bb716",
"panels/ha-panel-dev-state.html": "7948d3dba058f31517d880df8ed0e857",
"panels/ha-panel-dev-template.html": "f47b6910d8e4880e22cc508ca452f9b6",
"panels/ha-panel-hassio.html": "b46e7619f3c355f872d5370741d89f6a",
@@ -19,7 +19,7 @@ FINGERPRINTS = {
"panels/ha-panel-iframe.html": "56930204d6e067a3d600cf030f4b34c8",
"panels/ha-panel-kiosk.html": "b40aa5cb52dd7675bea744afcf9eebf8",
"panels/ha-panel-logbook.html": "771afdcf48dc7e308b0282417d2e02d8",
- "panels/ha-panel-map.html": "bbf9f28f3a9058e360867b79b1309eaa",
+ "panels/ha-panel-map.html": "c2544fff3eedb487d44105cf94b335ec",
"panels/ha-panel-shopping-list.html": "d8cfd0ecdb3aa6214c0f6908c34c7141",
"panels/ha-panel-zwave.html": "48a71bd864f1f047ff74322be6430f00"
}
diff --git a/homeassistant/components/frontend/www_static/custom-elements-es5-adapter.js b/homeassistant/components/frontend/www_static/custom-elements-es5-adapter.js
new file mode 100644
index 00000000000..4bcb525b475
--- /dev/null
+++ b/homeassistant/components/frontend/www_static/custom-elements-es5-adapter.js
@@ -0,0 +1,16 @@
+(function () {
+'use strict';
+
+(()=>{'use strict';if(!window.customElements)return;const a=window.HTMLElement,b=window.customElements.define,c=window.customElements.get,d=new Map,e=new Map;let f=!1,g=!1;window.HTMLElement=function(){if(!f){const a=d.get(this.constructor),b=c.call(window.customElements,a);g=!0;const e=new b;return e}f=!1;},window.HTMLElement.prototype=a.prototype;Object.defineProperty(window,'customElements',{value:window.customElements,configurable:!0,writable:!0}),Object.defineProperty(window.customElements,'define',{value:(c,h)=>{const i=h.prototype,j=class extends a{constructor(){super(),Object.setPrototypeOf(this,i),g||(f=!0,h.call(this)),g=!1;}},k=j.prototype;j.observedAttributes=h.observedAttributes,k.connectedCallback=i.connectedCallback,k.disconnectedCallback=i.disconnectedCallback,k.attributeChangedCallback=i.attributeChangedCallback,k.adoptedCallback=i.adoptedCallback,d.set(h,c),e.set(c,h),b.call(window.customElements,c,j);},configurable:!0,writable:!0}),Object.defineProperty(window.customElements,'get',{value:(a)=>e.get(a),configurable:!0,writable:!0});})();
+
+/**
+@license
+Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
+This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
+The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
+The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
+Code distributed by Google as part of the polymer project is also
+subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
+*/
+
+}());
diff --git a/homeassistant/components/frontend/www_static/custom-elements-es5-adapter.js.gz b/homeassistant/components/frontend/www_static/custom-elements-es5-adapter.js.gz
new file mode 100644
index 00000000000..42759b325ad
Binary files /dev/null and b/homeassistant/components/frontend/www_static/custom-elements-es5-adapter.js.gz differ
diff --git a/homeassistant/components/frontend/www_static/frontend.html b/homeassistant/components/frontend/www_static/frontend.html
index 2eb05d6e132..36805081438 100644
--- a/homeassistant/components/frontend/www_static/frontend.html
+++ b/homeassistant/components/frontend/www_static/frontend.html
@@ -1,4 +1,4 @@
-
[[_text]]
[[_charCounterStr]] [[_text]]
[[_charCounterStr]]
[[label]] [[errorMessage]] [[computeLoadingMsg(isValidating)]]
[[label]] [[errorMessage]] [[computeLoadingMsg(isValidating)]]
[[computeStateName(stateObj)]](Error loading image)
[[computeStateDisplay(stateObj)]]
[[item]] [[playerObj.primaryText]]
[[playerObj.secondaryText]]
[[computeStateName(stateObj)]] [[computeTitle(states, groupEntity)]]
To install Home Assistant, run:pip3 install homeassistant hass --open-ui
Here are some resources to get you started.
To remove this card, edit your config in configuration.yaml
and disable the introduction
component.
[[computeStateName(stateObj)]]
[[playerObj.primaryText]]
[[playerObj.secondaryText]]
[[formatAttribute(attribute)]]
[[formatAttributeValue(stateObj, attribute)]]
[[computeAttribution(stateObj)]]
[[stateObj.attributes.temperature]]° [[nowCond]] [[stateObj.attributes.humidity]]% [[windBearing]] [[stateObj.attributes.wind_speed]] Visual [[stateObj.attributes.visibility]]
[[item]]
[[item]] [[item]] [[item]]
DISMISS [[computeTitle(views, locationName)]]
[[locationName]] [[computeStateName(defaultView)]] [[computeStateName(item)]]
No state history found. Last triggered:
TRIGGER [[value]] [[units]]
[[computeStateDisplay(stateObj)]]
[[item]] [[playerObj.primaryText]]
[[playerObj.secondaryText]]
[[computeStateName(stateObj)]] [[computeTitle(states, groupEntity)]]
To install Home Assistant, run:pip3 install homeassistant hass --open-ui
Here are some resources to get you started.
To remove this card, edit your config in configuration.yaml
and disable the introduction
component.
[[computeStateName(stateObj)]]
[[playerObj.primaryText]]
[[playerObj.secondaryText]]
[[formatAttribute(attribute)]]
[[formatAttributeValue(stateObj, attribute)]]
[[computeAttribution(stateObj)]]
[[stateObj.attributes.temperature]]° [[nowCond]] [[stateObj.attributes.humidity]]% [[windBearing]] [[stateObj.attributes.wind_speed]] Visual [[stateObj.attributes.visibility]]
[[item]]
[[item]] [[item]] [[item]]
DISMISS [[computeTitle(views, locationName)]]
[[locationName]] [[computeStateName(defaultView)]] [[computeStateName(item)]]
No state history found. Last triggered:
TRIGGER [[value]] [[units]]
{{text}}
{{text}}
[[getDescription(hass, domain, service)]]
[[label]] [[errorMessage]] [[_getTitle(month, i18n.monthNames)]]
[[item.weekDayShort]]
[[_getWeekNumber(item, _days)]]
[[_getDate(item)]]
[[getDescription(hass, domain, service)]]
[[label]] [[errorMessage]] [[_getTitle(month, i18n.monthNames)]]
[[item.weekDayShort]]
[[_getWeekNumber(item, _days)]]
[[_getDate(item)]]
[[i18n.calendar]]
[[_yearAfterXMonths(_visibleMonthIndex)]]
{{label}} Automations Editor
Currently Chrome is the only supported browser.
The automation editor allows you to create and edit automations. Please read
the instructions to make sure that you have configured Home Assistant correctly.
We couldn't find any editable automations.
[[computeName(automation)]]
[[computeDescription(automation)]]
[[computeStatus(automation)]]{{label}} Automations Editor
The automation editor allows you to create and edit automations. Please read
the instructions to make sure that you have configured Home Assistant correctly.
We couldn't find any editable automations.
[[computeName(automation)]]
[[computeDescription(automation)]]
[[computeStatus(automation)]]Automation [[name]]
\ No newline at end of file
+ ha-automation-editor{height:100%;}