From 84c297ae71fe4c27649e69f17bb41175a64410ae Mon Sep 17 00:00:00 2001 From: Andrey Date: Mon, 17 Apr 2017 01:24:28 +0300 Subject: [PATCH] Fix history panel (#259) --- src/data/ha-state-history-data.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/data/ha-state-history-data.html b/src/data/ha-state-history-data.html index 5e5d00126e..c496162d2c 100644 --- a/src/data/ha-state-history-data.html +++ b/src/data/ha-state-history-data.html @@ -69,14 +69,17 @@ startTime: { type: Date, + value: null, }, endTime: { type: Date, + value: null, }, entityId: { type: String, + value: null, }, isLoading: { @@ -110,10 +113,10 @@ var data; if (filterType === 'date') { - if (startTime === undefined || endTime === undefined) return; + if (startTime === null || endTime === null) return; data = this.getDate(startTime, endTime); } else if (filterType === 'recent-entity') { - if (entityId === undefined) return; + if (entityId === null) return; data = this.getRecent(entityId); } else { return;