From 5ad63e6c44cdb3a027640e20789ad0b6d6d4ddd7 Mon Sep 17 00:00:00 2001 From: Bernhard Kirchen Date: Sun, 1 Sep 2024 22:08:12 +0200 Subject: [PATCH] Fix: DPL settings: do not reset solar_passthrough_enabled we must not reset the configuration switch value in this context. this leads to solar passthrough being disabled once the DPL is disabled. when re-enabling the DPL, solar passthrough is suddenly off, even though the user configured it to be on. the configuration switch can stay on. the DPL will still sanity-check whether or not solar-passthrough can be used (checks if VE.Direct is enabled) or it is irrelevant since the DPL is disabled. --- webapp/src/views/PowerLimiterAdminView.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/webapp/src/views/PowerLimiterAdminView.vue b/webapp/src/views/PowerLimiterAdminView.vue index 96f51ed46..05b7bdd9c 100644 --- a/webapp/src/views/PowerLimiterAdminView.vue +++ b/webapp/src/views/PowerLimiterAdminView.vue @@ -501,11 +501,7 @@ export default defineComponent({ canUseSolarPassthrough() { const cfg = this.powerLimiterConfigList; const meta = this.powerLimiterMetaData; - const canUse = this.isEnabled() && meta.charge_controller_enabled && !cfg.is_inverter_solar_powered; - if (!canUse) { - cfg.solar_passthrough_enabled = false; - } - return canUse; + return this.isEnabled() && meta.charge_controller_enabled && !cfg.is_inverter_solar_powered; }, canUseSoCThresholds() { const cfg = this.powerLimiterConfigList;