diff --git a/src/components/spans/generalSecondarySpan.ts b/src/components/spans/generalSecondarySpan.ts index 5034923..348e5d7 100644 --- a/src/components/spans/generalSecondarySpan.ts +++ b/src/components/spans/generalSecondarySpan.ts @@ -6,7 +6,14 @@ import { PowerFlowCardPlus } from "../../power-flow-card-plus"; import { TemplatesObj } from "../../type"; import { PowerFlowCardPlusConfig } from "../../power-flow-card-plus-config"; -export const generalSecondarySpan = (hass: HomeAssistant, main: PowerFlowCardPlus, config: PowerFlowCardPlusConfig, templatesObj: TemplatesObj, field, key: string) => { +export const generalSecondarySpan = ( + hass: HomeAssistant, + main: PowerFlowCardPlus, + config: PowerFlowCardPlusConfig, + templatesObj: TemplatesObj, + field, + key: string +) => { return html` ${field?.secondary?.has || field?.secondary?.template ? html` ${baseSecondarySpan({ main, diff --git a/src/style/all.ts b/src/style/all.ts index 16f04b8..e1951f6 100644 --- a/src/style/all.ts +++ b/src/style/all.ts @@ -225,9 +225,8 @@ export const allDynamicStyles = ( const colors = ["#d0cc5b", "#964cb5", "#b54c9d", "#5bd0cc"]; const fieldNames: string[] = ["left-top", "left-bottom", "right-top", "right-bottom"]; - - if(!fieldNames?.[index]) { - console.log('\x1b[41m%s\x1b[0m', 'src/style/all.ts:230 field, index', field, index); + if (!fieldNames?.[index]) { + console.log("\x1b[41m%s\x1b[0m", "src/style/all.ts:230 field, index", field, index); } const fieldName = fieldNames?.[index] || "left-top";