Skip to content

Commit

Permalink
Fix: webapp: DPL: config hint only for governed inverters
Browse files Browse the repository at this point in the history
the config hint "inverters must be configured to be send/receive command"
shall only show if a *governed* inverter has one of the communication
switches disabled.
  • Loading branch information
schlimmchen committed Dec 2, 2024
1 parent 84c4363 commit 943e097
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion webapp/src/views/PowerLimiterAdminView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,13 @@ export default defineComponent({
) {
continue;
}
if (!(inv.poll_enable && inv.command_enable && inv.poll_enable_night && inv.command_enable_night)) {
const commEnabled =
inv.poll_enable && inv.command_enable && inv.poll_enable_night && inv.command_enable_night;
const governed = this.governedInverters.some(
(cfgInv: PowerLimiterInverterConfig) => cfgInv.serial === inv.serial
);
if (governed && !commEnabled) {
hints.push({ severity: 'requirement', subject: 'InverterCommunication' });
break;
}
Expand Down

0 comments on commit 943e097

Please sign in to comment.