Skip to content

Commit 01cf7d2

Browse files
committed
1.6.1
* Correctly sets entityState to decimal when using `decimal` config option.
1 parent 6fe092c commit 01cf7d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bar-card.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ class BarCard extends HTMLElement {
10381038
}
10391039

10401040
if (config.decimal !== false) {
1041-
entityState.toFixed(config.decimal)
1041+
entityState = entityState.toFixed(config.decimal)
10421042
}
10431043
}
10441044

0 commit comments

Comments
 (0)