From c2b49931be76bae5dddfcb451d5df9d9fa22feb1 Mon Sep 17 00:00:00 2001 From: Bernhard Kirchen Date: Sun, 3 Sep 2023 18:29:15 +0200 Subject: [PATCH] Fix: must call Pylontech Home Assistent init() method previously, the Pytlontech Home Assistent class implementation had an init() method, that was never called, as it did nothing. the class relied on its loop() method being called from the main loop(). after switching to the TaskScheduler approach, the Pylontech Home Assistent class init() method was adjusted to register a task that calls the loop() method periodically. however, the init() method was still not called. --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.cpp b/src/main.cpp index 38fcbc2e..702a54f6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -116,6 +116,7 @@ void setup() MqttHandleVedirect.init(scheduler); MqttHandleHass.init(scheduler); MqttHandleVedirectHass.init(scheduler); + MqttHandlePylontechHass.init(scheduler); MqttHandleHuawei.init(scheduler); MqttHandlePowerLimiter.init(scheduler); MessageOutput.println("done");