@@ -693,7 +693,7 @@ class PredbatTableCard extends HTMLElement {
693693
694694 }
695695
696- if ( column === "pv-column" || column === "load-column" || column === 'import-column' || column === 'export-column' ) {
696+ if ( column === "pv-column" || column === "load-column" || column === 'import-column' || column === 'export-column' || column === "limit-column" ) {
697697
698698 const hasBoldTags = / < b > .* ?< \/ b > / . test ( theItem . value ) ;
699699 const hasItalicTags = / < i > .* ?< \/ i > / . test ( theItem . value ) ;
@@ -710,8 +710,11 @@ class PredbatTableCard extends HTMLElement {
710710 newContent = theItem . value ;
711711 } else {
712712 // we need to remove the debug value from the string
713- if ( column === "pv-column" || column === "load-column" )
714- newContent = parseFloat ( theItem . value ) . toFixed ( 2 ) ;
713+ if ( column === "pv-column" || column === "load-column" || column === "limit-column" )
714+ if ( column === "pv-column" || column === "load-column" )
715+ newContent = parseFloat ( theItem . value ) . toFixed ( 2 ) ;
716+ else
717+ newContent = parseFloat ( theItem . value ) . toFixed ( 0 ) ;
715718 else {
716719 if ( debugPrices ) {
717720 let priceStrings = this . getPricesFromPriceString ( contentWithoutTags , hasBoldTags , hasItalicTags , debugPrices ) ;
@@ -720,8 +723,11 @@ class PredbatTableCard extends HTMLElement {
720723 }
721724 }
722725 } else { // there are NO debug columns in the YAML, so dont show debug values even if HTML Debug is ON
723- if ( column === "pv-column" || column === "load-column" )
724- newContent = parseFloat ( theItem . value ) . toFixed ( 2 ) ;
726+ if ( column === "pv-column" || column === "load-column" || column === "limit-column" )
727+ if ( column === "pv-column" || column === "load-column" )
728+ newContent = parseFloat ( theItem . value ) . toFixed ( 2 ) ;
729+ else
730+ newContent = parseFloat ( theItem . value ) . toFixed ( 0 ) ;
725731 else {
726732 if ( debugPrices ) {
727733 let priceStrings = this . getPricesFromPriceString ( contentWithoutTags , hasBoldTags , hasItalicTags , debugPrices ) ;
0 commit comments