Skip to content

Commit

Permalink
chore: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
RomRider committed Apr 21, 2022
1 parent f2073a7 commit 3ffc88a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .devcontainer/ui-lovelace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1298,3 +1298,22 @@ views:
- entity: sensor.random0_100
time_delta: -1h
offset: -1h
- type: custom:apexcharts-card
graph_span: 2d
span:
start: day
header:
show: true
title: Line should not get back in time
all_series_config:
stroke_width: 1
extend_to: now
series:
- entity: sensor.random0_100
data_generator: |
const tomorrow = new Date(start.getTime() + 25 * 1000 * 60 * 60);
const tomorrow2 = new Date(start.getTime() + 28 * 1000 * 60 * 60);
return [
[tomorrow.getTime(), 30],
[tomorrow2.getTime(), 20]
];

0 comments on commit 3ffc88a

Please sign in to comment.