11import { html , svg } from "lit" ;
2- import { showLine } from "../utils/showLine" ;
32import { PowerFlowCardPlus } from "../power-flow-card-plus" ;
43import { PowerFlowCardPlusConfig } from "../power-flow-card-plus-config" ;
5- import { NewDur , TemplatesObj } from "../type" ;
64import { IndividualObject } from "../states/raw/individual/getIndividualObject" ;
5+ import { NewDur , TemplatesObj } from "../type" ;
6+ import { checkShouldShowDots } from "../utils/checkShouldShowDots" ;
7+ import { computeIndividualFlowRate } from "../utils/computeFlowRate" ;
8+ import { showLine } from "../utils/showLine" ;
79import { styleLine } from "../utils/styleLine" ;
810import { individualSecondarySpan } from "./spans/individualSecondarySpan" ;
9- import { HomeAssistant } from "custom-card-helpers" ;
10- import { computeIndividualFlowRate } from "../utils/computeFlowRate" ;
11- import { checkShouldShowDots } from "../utils/checkShouldShowDots" ;
1211
1312interface IndividualBottom {
1413 newDur : NewDur ;
@@ -19,7 +18,6 @@ interface IndividualBottom {
1918
2019export const individualLeftBottomElement = (
2120 main : PowerFlowCardPlus ,
22- hass : HomeAssistant ,
2321 config : PowerFlowCardPlusConfig ,
2422 { individualObj, templatesObj, displayState, newDur } : IndividualBottom
2523) => {
@@ -62,7 +60,7 @@ export const individualLeftBottomElement = (
6260 }
6361 } }
6462 >
65- ${ individualSecondarySpan ( hass , main , config , templatesObj , individualObj , indexOfIndividual , "left-bottom" ) }
63+ ${ individualSecondarySpan ( main . hass , main , config , templatesObj , individualObj , indexOfIndividual , "left-bottom" ) }
6664 ${ individualObj ?. icon !== " " ? html ` < ha-icon id ="individual-left-bottom-icon " .icon =${ individualObj ?. icon } / > ` : null }
6765 ${ individualObj ?. field ?. display_zero_state !== false || ( individualObj ?. state || 0 ) > ( individualObj . displayZeroTolerance ?? 0 )
6866 ? html ` < span class ="individual-bottom individual-left-bottom "
0 commit comments