Skip to content

Commit

Permalink
chore: Fix ui-lovelace for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RomRider committed Feb 1, 2021
1 parent 6d1c7a0 commit fa418a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .devcontainer/ui-lovelace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,10 @@ views:
- entity: weather.openweathermap
type: area
extend_to_end: false
offset: -1d
data_generator: |
return entity.attributes.forecast.map((entry) => {
return [new Date(entry.datetime), entry.temperature];
return [new Date(entry.datetime).getTime(), entry.temperature];
});
- type: custom:apexcharts-card
Expand Down

0 comments on commit fa418a3

Please sign in to comment.