Skip to content

Commit

Permalink
fix: hide total solarefficiency percentage when mppt === 1 on full card
Browse files Browse the repository at this point in the history
  • Loading branch information
slipx06 committed Dec 8, 2024
1 parent 2c05d92 commit 1118681
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sunsynk-power-flow-card",
"version": "6.1.6",
"version": "6.1.7",
"description": "A customizable Home Assistant card to emulate the Sunsynk System flow that's displayed on the Inverter screen.",
"main": "sunsynk-power-flow-card.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/cards/full-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ export const fullCard = (config: sunsynkPowerFlowCardConfig, inverterImg: string
fill="${data.solarColour}">${data.PV4Efficiency}%
</text>
<text x="51" y="202" class="${[2, 3].includes(config.solar.efficiency) ? 'st3 st8 left-align' : 'st12'}"
display="${!config.show_solar || [0, 1].includes(config.solar.efficiency) ? 'none' : ''}"
display="${!config.show_solar || [0, 1].includes(config.solar.efficiency) || config.solar.mppts === 1 ? 'none' : ''}"
fill="${data.solarColour}">${data.totalPVEfficiency}%
</text>
<text id="daily_solar" x="43.5" y="29" class="st3 left-align"
Expand Down

0 comments on commit 1118681

Please sign in to comment.