From 383cf8dfdbb0634f12992236c1ac4619bc13b8b7 Mon Sep 17 00:00:00 2001 From: Mathieu Carbou Date: Fri, 5 May 2023 21:36:38 +0200 Subject: [PATCH] Fix "divert_active" topic which was no updated first time with the current value --- src/divert.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/divert.cpp b/src/divert.cpp index f8b24fd5..38ce147e 100644 --- a/src/divert.cpp +++ b/src/divert.cpp @@ -245,10 +245,10 @@ void DivertTask::update_state() if(_state != current_evse_state) { _state = current_evse_state; - event["divert_active"] = isActive(); } } + event["divert_active"] = isActive(); event["charge_rate"] = _charge_rate; event["trigger_current"] = trigger_current; event["voltage"] = voltage;