From ffce92d0260574f93f4c9a7def514b65ad03c597 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 1 Sep 2016 10:49:31 +0100 Subject: [PATCH] Add automation more info --- src/components/ha-relative-time.html | 2 +- src/more-infos/more-info-automation.html | 50 ++++++++++++++++++++++++ src/more-infos/more-info-content.html | 1 + src/util/hass-util.html | 2 +- 4 files changed, 53 insertions(+), 2 deletions(-) create mode 100644 src/more-infos/more-info-automation.html diff --git a/src/components/ha-relative-time.html b/src/components/ha-relative-time.html index b8f487fd4a..3b129a593f 100644 --- a/src/components/ha-relative-time.html +++ b/src/components/ha-relative-time.html @@ -48,7 +48,7 @@ Polymer({ updateRelative: function () { var root = Polymer.dom(this); root.innerHTML = this.parsedDateTime ? - window.hassUtil.relativeTime(this.parsedDateTime) : ''; + window.hassUtil.relativeTime(this.parsedDateTime) : 'never'; }, }); diff --git a/src/more-infos/more-info-automation.html b/src/more-infos/more-info-automation.html new file mode 100644 index 0000000000..cc87398483 --- /dev/null +++ b/src/more-infos/more-info-automation.html @@ -0,0 +1,50 @@ + + + + + + + + + + + + + diff --git a/src/more-infos/more-info-content.html b/src/more-infos/more-info-content.html index d2f251677a..cd888d8a60 100644 --- a/src/more-infos/more-info-content.html +++ b/src/more-infos/more-info-content.html @@ -1,5 +1,6 @@ + diff --git a/src/util/hass-util.html b/src/util/hass-util.html index fe9f236404..26ed19c552 100644 --- a/src/util/hass-util.html +++ b/src/util/hass-util.html @@ -28,7 +28,7 @@ window.hassUtil.DOMAINS_WITH_CARD = [ window.hassUtil.DOMAINS_WITH_MORE_INFO = [ 'light', 'group', 'sun', 'climate', 'configurator', 'cover', 'thermostat', 'script', 'media_player', 'camera', 'updater', 'alarm_control_panel', - 'lock', 'hvac', + 'lock', 'hvac', 'automation', ]; window.hassUtil.DOMAINS_WITH_NO_HISTORY = ['camera', 'configurator', 'scene'];