Skip to content

Commit

Permalink
fix: fix csv output for history_fields
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Dej <[email protected]>
  • Loading branch information
meteyou committed May 18, 2024
1 parent 149941a commit 99c7651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/panels/HistoryListPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 99c7651

Please sign in to comment.