From 0e95debe3b6c249fb52e77edc7b78324f945fabe Mon Sep 17 00:00:00 2001 From: MrPrisoner <2877453+MrPrisoner@users.noreply.github.com> Date: Sat, 20 Apr 2024 10:38:55 +0200 Subject: [PATCH 01/12] fix: :bug: secondary info on individual uses incorrect index --- src/components/individualLeftBottomElement.ts | 2 +- src/components/individualLeftTopElement.ts | 2 +- src/components/individualRightBottomElement.ts | 2 +- src/components/individualRightTopElement.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/individualLeftBottomElement.ts b/src/components/individualLeftBottomElement.ts index 72b1fd8..1ad3e56 100644 --- a/src/components/individualLeftBottomElement.ts +++ b/src/components/individualLeftBottomElement.ts @@ -62,7 +62,7 @@ export const individualLeftBottomElement = ( } }} > - ${individualSecondarySpan(hass, main, config, templatesObj, individualObj, 1, "left-bottom")} + ${individualSecondarySpan(hass, main, config, templatesObj, individualObj, indexOfIndividual, "left-bottom")} ${individualObj?.field?.display_zero_state !== false || (individualObj?.state || 0) > (individualObj.displayZeroTolerance ?? 0) ? html` - ${individualSecondarySpan(main.hass, main, config, templatesObj, individualObj, 0, "left-top")} + ${individualSecondarySpan(main.hass, main, config, templatesObj, individualObj, indexOfIndividual, "left-top")} ${individualObj?.field?.display_zero_state !== false || (individualObj.state || 0) > (individualObj.displayZeroTolerance ?? 0) ? html` diff --git a/src/components/individualRightBottomElement.ts b/src/components/individualRightBottomElement.ts index 341a2f1..91e8095 100644 --- a/src/components/individualRightBottomElement.ts +++ b/src/components/individualRightBottomElement.ts @@ -45,7 +45,7 @@ export const individualRightBottomElement = ( } }} > - ${individualSecondarySpan(main.hass, main, config, templatesObj, individualObj, 3, "right-bottom")} + ${individualSecondarySpan(main.hass, main, config, templatesObj, individualObj, indexOfIndividual, "right-bottom")} ${individualObj?.field?.display_zero_state !== false || (individualObj.state || 0) > (individualObj.displayZeroTolerance ?? 0) ? html` diff --git a/src/components/individualRightTopElement.ts b/src/components/individualRightTopElement.ts index b6a47e4..42bdc73 100644 --- a/src/components/individualRightTopElement.ts +++ b/src/components/individualRightTopElement.ts @@ -46,7 +46,7 @@ export const individualRightTopElement = ( } }} > - ${individualSecondarySpan(main.hass, main, config, templatesObj, individualObj, 2, "right-top")} + ${individualSecondarySpan(main.hass, main, config, templatesObj, individualObj, indexOfIndividual, "right-top")} ${individualObj?.field?.display_zero_state !== false || (individualObj.state || 0) > (individualObj.displayZeroTolerance ?? 0) ? html` From 63e60291dda1ace36026e3176b8225bbc9d29c73 Mon Sep 17 00:00:00 2001 From: MrPrisoner <2877453+MrPrisoner@users.noreply.github.com> Date: Sat, 20 Apr 2024 10:39:26 +0200 Subject: [PATCH 02/12] docs: :memo: fix Power Outage table --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1af0e2d..254898f 100644 --- a/README.md +++ b/README.md @@ -266,13 +266,14 @@ This Feature allows you to configure an additional small text for each Individua This feature allows you to configure how the card handles a Grid Power Outage scenario. | Name | Type | Description | -| ------------------- | --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| ------------------- | --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | entity | `string` required | Entity ID providing a state that changes when there is a Power Outage. (eg: `binary_sensor.grid_connection_status`). Doesn't need to be a binary_sensor. | | entity_generator | `string` | Entity ID providing the power of a Generator. (eg: `sensor.generator_power`). This is optional, meaning if you don't use this, the card will assume the grid is the only source of power. | | state_alert | `string` | The state the provided entity is at when there is a power outage. Default is `on`, meaning if the entity's state is `on` the card will assume there is a power outage. | | icon_alert | `string` | An icon path to be override the grid icon when there is a power outage. Default is `mdi:transmission-tower-off`. | | label_alert | `string` | A text that will be displayed below the icon when there is a power outage. | -| calculate_flow_rate | `boolean` or `number` | `false` | If set to `true`, the flow rate will be calculated by using the flow rate formula (either the new or the old one, depending on your configuration). If set to a number, the flow rate will be set to that number. For example, defining the value `10` will ensure one dot will flow every 10 seconds. | +| calculate_flow_rate | `boolean` or `number` | `false` | +| | | If set to `true`, the flow rate will be calculated by using the flow rate formula (either the new or the old one, depending on your configuration). If set to a number, the flow rate will be set to that number. For example, defining the value `10` will ensure one dot will flow every 10 seconds. | #### Display Zero Lines From 988486343a1c08e4d4770bde2ca4d59751264e59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20F=C3=A9lix?= Date: Sun, 21 Apr 2024 17:03:17 +0200 Subject: [PATCH 03/12] fix: :bug: decimal values not in individual --- src/power-flow-card-plus.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/power-flow-card-plus.ts b/src/power-flow-card-plus.ts index fd36d0c..ea67aa6 100644 --- a/src/power-flow-card-plus.ts +++ b/src/power-flow-card-plus.ts @@ -481,14 +481,13 @@ export class PowerFlowCardPlus extends LitElement { }, }; - /* return source object with largest value property */ const homeLargestSource = Object.keys(homeSources).reduce((a, b) => (homeSources[a].value > homeSources[b].value ? a : b)); const getIndividualDisplayState = (field?: IndividualObject) => { if (!field) return ""; if (field?.state === undefined) return ""; - // return displayValue(this.hass, field?.state, field?.unit, field?.unit_white_space, field?.decimals); return displayValue(this.hass, this._config, field?.state, { + decimals: field?.decimals, unit: field?.unit, unitWhiteSpace: field?.unit_white_space, watt_threshold: this._config.watt_threshold, From 53a2648612834c31be66f85fc8b5f348a229cd5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20F=C3=A9lix?= Date: Sun, 21 Apr 2024 17:15:26 +0200 Subject: [PATCH 04/12] fix: :bug: check if there is fossil --- src/components/nonFossil.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/nonFossil.ts b/src/components/nonFossil.ts index a47cb8c..5d21502 100644 --- a/src/components/nonFossil.ts +++ b/src/components/nonFossil.ts @@ -52,7 +52,7 @@ export const nonFossilElement = ( ? html` - ${checkShouldShowDots(config) && nonFossil.has + ${checkShouldShowDots(config) && nonFossil.has && nonFossil.state.power > 0 ? svg` Date: Sun, 21 Apr 2024 17:33:36 +0200 Subject: [PATCH 05/12] fix: :bug: missing unit white space config individual entity --- src/ui-editor/schema/individual.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ui-editor/schema/individual.ts b/src/ui-editor/schema/individual.ts index 3d075c5..49e8a70 100644 --- a/src/ui-editor/schema/individual.ts +++ b/src/ui-editor/schema/individual.ts @@ -56,6 +56,11 @@ const mainSchema = { label: "Show Direction", selector: { boolean: {} }, }, + { + name: "unit_white_space", + label: "Unit White Space", + selector: { boolean: {} }, + }, { name: "use_metadata", label: "Use Metadata", From 57c3c954510912b4579e45f093c0e2de2ad105e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20F=C3=A9lix?= Date: Sun, 21 Apr 2024 17:52:25 +0200 Subject: [PATCH 06/12] feat: :art: hide icons --- src/components/battery.ts | 25 +++++++++++-------- src/components/grid.ts | 2 +- src/components/home.ts | 2 +- src/components/individualLeftBottomElement.ts | 2 +- src/components/individualLeftTopElement.ts | 2 +- .../individualRightBottomElement.ts | 2 +- src/components/individualRightTopElement.ts | 2 +- src/components/nonFossil.ts | 2 +- src/components/solar.ts | 2 +- 9 files changed, 22 insertions(+), 19 deletions(-) diff --git a/src/components/battery.ts b/src/components/battery.ts index 4c6fec2..5d1093e 100644 --- a/src/components/battery.ts +++ b/src/components/battery.ts @@ -57,17 +57,20 @@ export const batteryElement = ( })} ` : null} - void }) => { - main.openDetails(e, entities.battery?.state_of_charge!); - }} - @keyDown=${(e: { key: string; stopPropagation: () => void }) => { - if (e.key === "Enter") { - main.openDetails(e, entities.battery?.state_of_charge!); - } - }} - > + ${battery.icon !== " " + ? html` void }) => { + main.openDetails(e, entities.battery?.state_of_charge!); + }} + @keyDown=${(e: { key: string; stopPropagation: () => void }) => { + if (e.key === "Enter") { + main.openDetails(e, entities.battery?.state_of_charge!); + } + }} + />` + : null} ${entities.battery?.display_state === "two_way" || entities.battery?.display_state === undefined || (entities.battery?.display_state === "one_way_no_zero" && battery.state.toBattery > 0) || diff --git a/src/components/grid.ts b/src/components/grid.ts index 38e6cfc..0248439 100644 --- a/src/components/grid.ts +++ b/src/components/grid.ts @@ -37,7 +37,7 @@ export const gridElement = ( }} > ${generalSecondarySpan(main.hass, main, config, templatesObj, grid, "grid")} - + ${grid.icon !== " " ? html` ` : null} ${(entities.grid?.display_state === "two_way" || entities.grid?.display_state === undefined || (entities.grid?.display_state === "one_way_no_zero" && (grid.state.toGrid ?? 0) > 0) || diff --git a/src/components/home.ts b/src/components/home.ts index 9c40a48..fa0e28b 100644 --- a/src/components/home.ts +++ b/src/components/home.ts @@ -53,7 +53,7 @@ export const homeElement = ( }} > ${generalSecondarySpan(main.hass, main, config, templatesObj, home, "home")} - + ${home.icon !== " " ? html`` : null} ${homeUsageToDisplay} ${ diff --git a/src/components/individualLeftBottomElement.ts b/src/components/individualLeftBottomElement.ts index 72b1fd8..ae118d7 100644 --- a/src/components/individualLeftBottomElement.ts +++ b/src/components/individualLeftBottomElement.ts @@ -63,7 +63,7 @@ export const individualLeftBottomElement = ( }} > ${individualSecondarySpan(hass, main, config, templatesObj, individualObj, 1, "left-bottom")} - + ${individualObj?.icon !== " " ? html` ` : null} ${individualObj?.field?.display_zero_state !== false || (individualObj?.state || 0) > (individualObj.displayZeroTolerance ?? 0) ? html` ${individualObj?.showDirection diff --git a/src/components/individualLeftTopElement.ts b/src/components/individualLeftTopElement.ts index 687caca..9f87539 100644 --- a/src/components/individualLeftTopElement.ts +++ b/src/components/individualLeftTopElement.ts @@ -38,7 +38,7 @@ export const individualLeftTopElement = ( }} > ${individualSecondarySpan(main.hass, main, config, templatesObj, individualObj, 0, "left-top")} - + ${individualObj.icon !== " " ? html` ` : null} ${individualObj?.field?.display_zero_state !== false || (individualObj.state || 0) > (individualObj.displayZeroTolerance ?? 0) ? html` ${individualObj?.showDirection diff --git a/src/components/individualRightBottomElement.ts b/src/components/individualRightBottomElement.ts index 341a2f1..9ee9491 100644 --- a/src/components/individualRightBottomElement.ts +++ b/src/components/individualRightBottomElement.ts @@ -46,7 +46,7 @@ export const individualRightBottomElement = ( }} > ${individualSecondarySpan(main.hass, main, config, templatesObj, individualObj, 3, "right-bottom")} - + ${individualObj.icon !== " " ? html` ` : null} ${individualObj?.field?.display_zero_state !== false || (individualObj.state || 0) > (individualObj.displayZeroTolerance ?? 0) ? html` ${individualObj?.showDirection diff --git a/src/components/individualRightTopElement.ts b/src/components/individualRightTopElement.ts index b6a47e4..35bcb3b 100644 --- a/src/components/individualRightTopElement.ts +++ b/src/components/individualRightTopElement.ts @@ -47,7 +47,7 @@ export const individualRightTopElement = ( }} > ${individualSecondarySpan(main.hass, main, config, templatesObj, individualObj, 2, "right-top")} - + ${individualObj.icon !== " " ? html` ` : null} ${individualObj?.field?.display_zero_state !== false || (individualObj.state || 0) > (individualObj.displayZeroTolerance ?? 0) ? html` ${individualObj?.showDirection diff --git a/src/components/nonFossil.ts b/src/components/nonFossil.ts index a47cb8c..1cc06f2 100644 --- a/src/components/nonFossil.ts +++ b/src/components/nonFossil.ts @@ -38,7 +38,7 @@ export const nonFossilElement = ( }} > ${generalSecondarySpan(main.hass, main, config, templatesObj, nonFossil, "low-carbon")} - + ${nonFossil.icon !== " " ? html` ` : null} ${entities.fossil_fuel_percentage?.display_zero_state !== false || (nonFossil.state.power || 0) > (entities.fossil_fuel_percentage?.display_zero_tolerance || 0) ? html` diff --git a/src/components/solar.ts b/src/components/solar.ts index 18944e0..8d297fc 100644 --- a/src/components/solar.ts +++ b/src/components/solar.ts @@ -32,7 +32,7 @@ export const solarElement = ( }} > ${generalSecondarySpan(main.hass, main, config, templatesObj, solar, "solar")} - + ${solar.icon !== " " ? html` ` : null} ${entities.solar?.display_zero_state !== false || (solar.state.total || 0) > 0 ? html` ${displayValue(main.hass, config, solar.state.total, { From 9d7e7dcadafa914156647049fbbb95721de9f1e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20F=C3=A9lix?= Date: Sun, 21 Apr 2024 17:54:01 +0200 Subject: [PATCH 07/12] style: :art: whitespace formatting --- src/components/solar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/solar.ts b/src/components/solar.ts index 8d297fc..d69222d 100644 --- a/src/components/solar.ts +++ b/src/components/solar.ts @@ -32,7 +32,7 @@ export const solarElement = ( }} > ${generalSecondarySpan(main.hass, main, config, templatesObj, solar, "solar")} - ${solar.icon !== " " ? html` ` : null} + ${solar.icon !== " " ? html` ` : null} ${entities.solar?.display_zero_state !== false || (solar.state.total || 0) > 0 ? html` ${displayValue(main.hass, config, solar.state.total, { From d31dec95fbaac930f9f42d8176529aafabbc3f3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20F=C3=A9lix?= Date: Sun, 21 Apr 2024 17:59:10 +0200 Subject: [PATCH 08/12] fix: :bug: display zero behaviour individual secondary --- src/components/spans/individualSecondarySpan.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/spans/individualSecondarySpan.ts b/src/components/spans/individualSecondarySpan.ts index fa2d9a2..2b6359b 100644 --- a/src/components/spans/individualSecondarySpan.ts +++ b/src/components/spans/individualSecondarySpan.ts @@ -33,9 +33,9 @@ export const individualSecondarySpan = ( const shouldShowSecondary = () => { if (!!templateResult) return true; + if (individual?.secondary?.displayZero === true) return true; if (!individual?.secondary?.state) return false; if (!isNumberValue(individual?.secondary?.state)) return true; - if (individual?.secondary?.displayZero === true) return true; const toleranceSet = individual?.secondary?.displayZeroTolerance ?? 0; return ( From cb6aaf14276449330959bdf50d0385563140ff38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20F=C3=A9lix?= Date: Sun, 21 Apr 2024 18:14:07 +0200 Subject: [PATCH 09/12] fix: :art: individual-one-color-line-icon --- src/style.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/style.ts b/src/style.ts index 4610bc1..78bdf60 100644 --- a/src/style.ts +++ b/src/style.ts @@ -242,7 +242,7 @@ export const styles = css` .individual-top path, .individual-top circle { - stroke: var(--icon-individual-left-top-color); + stroke: var(--individual-left-top-color); } #individual-left-bottom-icon { From c844ed32485438d054ad733628ca232472809889 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20F=C3=A9lix?= Date: Sun, 21 Apr 2024 18:29:50 +0200 Subject: [PATCH 10/12] chore: :bookmark: update version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bfcc295..2660afa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "power-flow-card-plus", - "version": "0.2.1", + "version": "0.2.2", "description": "A power flow card for Home Assistant", "keywords": [ "home-assistant", From e37eb1eaa48a73f32ef15ab3d5d3da3bc3178f8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20F=C3=A9lix?= Date: Sun, 21 Apr 2024 17:52:25 +0200 Subject: [PATCH 11/12] feat: :art: hide icons --- src/components/battery.ts | 25 +++++++++++-------- src/components/grid.ts | 2 +- src/components/home.ts | 2 +- src/components/individualLeftBottomElement.ts | 2 +- src/components/individualLeftTopElement.ts | 2 +- .../individualRightBottomElement.ts | 2 +- src/components/individualRightTopElement.ts | 2 +- src/components/nonFossil.ts | 2 +- src/components/solar.ts | 2 +- 9 files changed, 22 insertions(+), 19 deletions(-) diff --git a/src/components/battery.ts b/src/components/battery.ts index 4c6fec2..5d1093e 100644 --- a/src/components/battery.ts +++ b/src/components/battery.ts @@ -57,17 +57,20 @@ export const batteryElement = ( })} ` : null} - void }) => { - main.openDetails(e, entities.battery?.state_of_charge!); - }} - @keyDown=${(e: { key: string; stopPropagation: () => void }) => { - if (e.key === "Enter") { - main.openDetails(e, entities.battery?.state_of_charge!); - } - }} - > + ${battery.icon !== " " + ? html` void }) => { + main.openDetails(e, entities.battery?.state_of_charge!); + }} + @keyDown=${(e: { key: string; stopPropagation: () => void }) => { + if (e.key === "Enter") { + main.openDetails(e, entities.battery?.state_of_charge!); + } + }} + />` + : null} ${entities.battery?.display_state === "two_way" || entities.battery?.display_state === undefined || (entities.battery?.display_state === "one_way_no_zero" && battery.state.toBattery > 0) || diff --git a/src/components/grid.ts b/src/components/grid.ts index 38e6cfc..0248439 100644 --- a/src/components/grid.ts +++ b/src/components/grid.ts @@ -37,7 +37,7 @@ export const gridElement = ( }} > ${generalSecondarySpan(main.hass, main, config, templatesObj, grid, "grid")} - + ${grid.icon !== " " ? html` ` : null} ${(entities.grid?.display_state === "two_way" || entities.grid?.display_state === undefined || (entities.grid?.display_state === "one_way_no_zero" && (grid.state.toGrid ?? 0) > 0) || diff --git a/src/components/home.ts b/src/components/home.ts index 9c40a48..fa0e28b 100644 --- a/src/components/home.ts +++ b/src/components/home.ts @@ -53,7 +53,7 @@ export const homeElement = ( }} > ${generalSecondarySpan(main.hass, main, config, templatesObj, home, "home")} - + ${home.icon !== " " ? html`` : null} ${homeUsageToDisplay} ${ diff --git a/src/components/individualLeftBottomElement.ts b/src/components/individualLeftBottomElement.ts index 72b1fd8..ae118d7 100644 --- a/src/components/individualLeftBottomElement.ts +++ b/src/components/individualLeftBottomElement.ts @@ -63,7 +63,7 @@ export const individualLeftBottomElement = ( }} > ${individualSecondarySpan(hass, main, config, templatesObj, individualObj, 1, "left-bottom")} - + ${individualObj?.icon !== " " ? html` ` : null} ${individualObj?.field?.display_zero_state !== false || (individualObj?.state || 0) > (individualObj.displayZeroTolerance ?? 0) ? html` ${individualObj?.showDirection diff --git a/src/components/individualLeftTopElement.ts b/src/components/individualLeftTopElement.ts index 687caca..9f87539 100644 --- a/src/components/individualLeftTopElement.ts +++ b/src/components/individualLeftTopElement.ts @@ -38,7 +38,7 @@ export const individualLeftTopElement = ( }} > ${individualSecondarySpan(main.hass, main, config, templatesObj, individualObj, 0, "left-top")} - + ${individualObj.icon !== " " ? html` ` : null} ${individualObj?.field?.display_zero_state !== false || (individualObj.state || 0) > (individualObj.displayZeroTolerance ?? 0) ? html` ${individualObj?.showDirection diff --git a/src/components/individualRightBottomElement.ts b/src/components/individualRightBottomElement.ts index 341a2f1..9ee9491 100644 --- a/src/components/individualRightBottomElement.ts +++ b/src/components/individualRightBottomElement.ts @@ -46,7 +46,7 @@ export const individualRightBottomElement = ( }} > ${individualSecondarySpan(main.hass, main, config, templatesObj, individualObj, 3, "right-bottom")} - + ${individualObj.icon !== " " ? html` ` : null} ${individualObj?.field?.display_zero_state !== false || (individualObj.state || 0) > (individualObj.displayZeroTolerance ?? 0) ? html` ${individualObj?.showDirection diff --git a/src/components/individualRightTopElement.ts b/src/components/individualRightTopElement.ts index b6a47e4..35bcb3b 100644 --- a/src/components/individualRightTopElement.ts +++ b/src/components/individualRightTopElement.ts @@ -47,7 +47,7 @@ export const individualRightTopElement = ( }} > ${individualSecondarySpan(main.hass, main, config, templatesObj, individualObj, 2, "right-top")} - + ${individualObj.icon !== " " ? html` ` : null} ${individualObj?.field?.display_zero_state !== false || (individualObj.state || 0) > (individualObj.displayZeroTolerance ?? 0) ? html` ${individualObj?.showDirection diff --git a/src/components/nonFossil.ts b/src/components/nonFossil.ts index a47cb8c..1cc06f2 100644 --- a/src/components/nonFossil.ts +++ b/src/components/nonFossil.ts @@ -38,7 +38,7 @@ export const nonFossilElement = ( }} > ${generalSecondarySpan(main.hass, main, config, templatesObj, nonFossil, "low-carbon")} - + ${nonFossil.icon !== " " ? html` ` : null} ${entities.fossil_fuel_percentage?.display_zero_state !== false || (nonFossil.state.power || 0) > (entities.fossil_fuel_percentage?.display_zero_tolerance || 0) ? html` diff --git a/src/components/solar.ts b/src/components/solar.ts index 18944e0..8d297fc 100644 --- a/src/components/solar.ts +++ b/src/components/solar.ts @@ -32,7 +32,7 @@ export const solarElement = ( }} > ${generalSecondarySpan(main.hass, main, config, templatesObj, solar, "solar")} - + ${solar.icon !== " " ? html` ` : null} ${entities.solar?.display_zero_state !== false || (solar.state.total || 0) > 0 ? html` ${displayValue(main.hass, config, solar.state.total, { From c19ab71f752d314a7875ad0e5539f2feb147321c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20F=C3=A9lix?= Date: Sun, 21 Apr 2024 17:54:01 +0200 Subject: [PATCH 12/12] style: :art: whitespace formatting --- src/components/solar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/solar.ts b/src/components/solar.ts index 8d297fc..d69222d 100644 --- a/src/components/solar.ts +++ b/src/components/solar.ts @@ -32,7 +32,7 @@ export const solarElement = ( }} > ${generalSecondarySpan(main.hass, main, config, templatesObj, solar, "solar")} - ${solar.icon !== " " ? html` ` : null} + ${solar.icon !== " " ? html` ` : null} ${entities.solar?.display_zero_state !== false || (solar.state.total || 0) > 0 ? html` ${displayValue(main.hass, config, solar.state.total, {