From 99c76510b17ff68fbb0be28f589603852f08d135 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sat, 18 May 2024 10:50:57 +0200 Subject: [PATCH] fix: fix csv output for history_fields Signed-off-by: Stefan Dej --- src/components/panels/HistoryListPanel.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/panels/HistoryListPanel.vue b/src/components/panels/HistoryListPanel.vue index 3525e19ea..10cd90fba 100644 --- a/src/components/panels/HistoryListPanel.vue +++ b/src/components/panels/HistoryListPanel.vue @@ -702,7 +702,7 @@ export default class HistoryListPanel extends Mixins(BaseMixin) { // return value, when it is not an array if (sensor && !Array.isArray(sensor.value)) { - value = `${Math.round(sensor.value * 1000) / 1000} ${sensor.units}` + value = sensor.value?.toLocaleString(this.browserLocale, { useGrouping: false }) ?? 0 } // return empty string, when value is null