From c8f5d78c34dd92f42d09157d2b84b306069e527e Mon Sep 17 00:00:00 2001 From: Steven Rollason <2099542+gadgetchnnel@users.noreply.github.com> Date: Wed, 30 Oct 2019 17:19:50 +0000 Subject: [PATCH] Changed exact_time_difference to exact_durations --- lovelace-home-feed-card.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lovelace-home-feed-card.js b/lovelace-home-feed-card.js index 9133cc3..6f4d71e 100644 --- a/lovelace-home-feed-card.js +++ b/lovelace-home-feed-card.js @@ -954,12 +954,12 @@ class HomeFeedCard extends HomeFeedCardHelpers.LitElement { } else { - let exact_time_difference = this._config.exact_time_difference === true; + let exact_durations = this._config.exact_durations === true; if(isNaN(n.timeDifference.value)){ timeItem = HomeFeedCardHelpers.html`
${n.timestamp}
`; } - else if(n.timeDifference.abs < 60 && n.format == "relative" && !exact_time_difference) { + else if(n.timeDifference.abs < 60 && n.format == "relative" && !exact_durations) { // Time difference less than 1 minute, so use a regular div tag with fixed text. // This avoids the time display refreshing too often shortly before or after an item's timestamp