Skip to content

Commit

Permalink
fix: pv3 animation closes #563
Browse files Browse the repository at this point in the history
  • Loading branch information
slipx06 committed Nov 25, 2024
1 parent 39036cb commit cc0c80d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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.1",
"version": "6.1.2",
"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
4 changes: 2 additions & 2 deletions src/cards/compact-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export const compactCard = (config: sunsynkPowerFlowCardConfig, inverterImg: str
class="${!config.show_solar || [1, 2].includes(config.solar.mppts) ? 'st12' : ''}"
fill="${Math.round(data.pv3PowerWatts) <= 0 ? 'transparent' : `${data.solarColour}`}">
<animateMotion dur="${data.durationCur['pv3']}s" repeatCount="indefinite"
keyPoints="${config.solar.invert_flow === true ? Utils.invertKeyPoints("0;1") : "0;1"}
keyPoints=${config.solar.invert_flow === true ? Utils.invertKeyPoints("0;1") : "0;1"}
keyTimes="0;1" calcMode="linear">
<mpath xlink:href="#pv3-line"/>
</animateMotion>
Expand Down Expand Up @@ -1309,7 +1309,7 @@ export const compactCard = (config: sunsynkPowerFlowCardConfig, inverterImg: str
${config.grid.grid_name || localize('common.grid_name')}
</text>
<svg id="grid-flow">
<path id="grid-line" d="${config.wide ? 'M 173 218 L 287 218': 'M 173 218 L 214 218'} fill="none" stroke="${data.gridColour}"
<path id="grid-line" d="${config.wide ? 'M 173 218 L 287 218': 'M 173 218 L 214 218'}" fill="none" stroke="${data.gridColour}"
stroke-width="${data.gridLineWidth}" stroke-miterlimit="10" pointer-events="stroke"
display="${!config.show_grid ? 'none' : ''}"/>
<circle id="grid-dot" cx="0" cy="0"
Expand Down

0 comments on commit cc0c80d

Please sign in to comment.