mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-16 13:56:35 +00:00
Fix history panel (#259)
This commit is contained in:
parent
9e38ce0c7b
commit
84c297ae71
@ -69,14 +69,17 @@
|
|||||||
|
|
||||||
startTime: {
|
startTime: {
|
||||||
type: Date,
|
type: Date,
|
||||||
|
value: null,
|
||||||
},
|
},
|
||||||
|
|
||||||
endTime: {
|
endTime: {
|
||||||
type: Date,
|
type: Date,
|
||||||
|
value: null,
|
||||||
},
|
},
|
||||||
|
|
||||||
entityId: {
|
entityId: {
|
||||||
type: String,
|
type: String,
|
||||||
|
value: null,
|
||||||
},
|
},
|
||||||
|
|
||||||
isLoading: {
|
isLoading: {
|
||||||
@ -110,10 +113,10 @@
|
|||||||
var data;
|
var data;
|
||||||
|
|
||||||
if (filterType === 'date') {
|
if (filterType === 'date') {
|
||||||
if (startTime === undefined || endTime === undefined) return;
|
if (startTime === null || endTime === null) return;
|
||||||
data = this.getDate(startTime, endTime);
|
data = this.getDate(startTime, endTime);
|
||||||
} else if (filterType === 'recent-entity') {
|
} else if (filterType === 'recent-entity') {
|
||||||
if (entityId === undefined) return;
|
if (entityId === null) return;
|
||||||
data = this.getRecent(entityId);
|
data = this.getRecent(entityId);
|
||||||
} else {
|
} else {
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user