diff --git a/home-assistant-js b/home-assistant-js index 0209bcdd0b..b7ac88af0b 160000 --- a/home-assistant-js +++ b/home-assistant-js @@ -1 +1 @@ -Subproject commit 0209bcdd0b7491d539f05887347d66a63e0da42c +Subproject commit b7ac88af0bf5a6065c021e47dc6af0f7006b187b diff --git a/panels/logbook/ha-logbook.html b/panels/logbook/ha-logbook.html index 16f77d042c..1afa54708e 100644 --- a/panels/logbook/ha-logbook.html +++ b/panels/logbook/ha-logbook.html @@ -1,21 +1,69 @@ - + + + + diff --git a/panels/logbook/ha-panel-logbook.html b/panels/logbook/ha-panel-logbook.html index 3b40752237..9ff57c7163 100644 --- a/panels/logbook/ha-panel-logbook.html +++ b/panels/logbook/ha-panel-logbook.html @@ -20,6 +20,10 @@ paper-input { max-width: 200px; } + + [hidden] { + display: none !important; + } @@ -30,8 +34,12 @@
- + Loading logbook entries
@@ -106,7 +114,7 @@ Polymer({ }, datepickerFocus: function () { - this.datePicker.adjustPosition(); + // this.datePicker.adjustPosition(); }, attached: function () { diff --git a/panels/logbook/logbook-entry.html b/panels/logbook/logbook-entry.html deleted file mode 100644 index 58706feb00..0000000000 --- a/panels/logbook/logbook-entry.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - - diff --git a/src/app-core.js b/src/app-core.js index 049edb2b89..d6cc86df5b 100644 --- a/src/app-core.js +++ b/src/app-core.js @@ -31,5 +31,11 @@ hass.reactor.batch(function () { setTimeout(hass.startLocalStoragePreferencesSync, 5000); +if ('serviceWorker' in navigator) { + window.addEventListener('load', function() { + navigator.serviceWorker.register('/service-worker.js'); + }); +} + // While we figure out how ha-entity-marker can keep it's references window.hass = hass; diff --git a/src/components/state-info.html b/src/components/entity/state-info.html similarity index 83% rename from src/components/state-info.html rename to src/components/entity/state-info.html index 5d27c20088..bdf296b05f 100644 --- a/src/components/state-info.html +++ b/src/components/entity/state-info.html @@ -1,7 +1,7 @@ - + - - + +