From fa418a3103b711c40de82d7b6d54525b92409b90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Wiedemann?= Date: Mon, 1 Feb 2021 19:02:43 +0000 Subject: [PATCH] chore: Fix ui-lovelace for tests --- .devcontainer/ui-lovelace.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.devcontainer/ui-lovelace.yaml b/.devcontainer/ui-lovelace.yaml index 93e75ae..e8f46f8 100644 --- a/.devcontainer/ui-lovelace.yaml +++ b/.devcontainer/ui-lovelace.yaml @@ -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