Skip to content

Commit

Permalink
Merge pull request #405 from Pho3niX90/master
Browse files Browse the repository at this point in the history
fix rounding on full card
  • Loading branch information
slipx06 authored Apr 24, 2024
2 parents 99ca2c0 + d0bda74 commit 7c15939
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/sunsynk-power-flow-card.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/cards/full-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1862,7 +1862,7 @@ export const fullCard = (config: sunsynkPowerFlowCardConfig, inverterImg: string
<text id="battery_soc_184" x="132.5" y="333"
display="${config.entities.battery_soc_184 === 'none' || !config.show_battery || !data.stateBatterySoc.isValid() ? 'none' : ''}"
fill=${data.batteryColour} class="st13 st8 left-align">
${data.stateBatterySoc.toNum()} %
${data.stateBatterySoc.toNum(0)} %
</text>
</a>
<a href="#" @click=${(e) => Utils.handlePopup(e, config.entities.battery_soc_184)}>
Expand Down
4 changes: 2 additions & 2 deletions src/inverters/brands/solis.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {InverterSettingsDto, InverterStatus} from '../dto/inverter-settings.dto';
import {InverterSettingsDto} from '../dto/inverter-settings.dto';
import {InverterModel} from '../../types';
import {localize} from '../../localize/localize';

Expand All @@ -21,7 +21,7 @@ export class Solis extends InverterSettingsDto {
message: localize('common.standby'),
},
alarm: {
states: ['4140', '4100', '4112', '4113', '4114', '4115', '4116', '4120', '4122', '4123', '4124', '4125', '4127', '4128', '4129', '4130', '4132', '4133', '4134', '4135', '4136', '4137', '4138', '4144', '4145', '4146', '4147', '4148', '4150', '4151', '4152'],
states: ['4140', '4100', '4112', '4113', '4114', '4115', '4116', '4120', '4122', '4123', '4124', '4125', '4127', '4128', '4129', '4130', '4132', '4133', '4134', '4135', '4136', '4137', '4138', '4144', '4145', '4146', '4147', '4148', '4150', '4151', '4152', '8123'],
color: 'red',
message: localize('common.alarm'),
},
Expand Down

0 comments on commit 7c15939

Please sign in to comment.