From 53d27ab2600f0b70d5364fbde43c3a24505d991d Mon Sep 17 00:00:00 2001 From: reserve85 Date: Sat, 17 Aug 2024 14:44:04 +0200 Subject: [PATCH] fix Log-String --- HoymilesZeroExport.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HoymilesZeroExport.py b/HoymilesZeroExport.py index b32151c..c3c9aa7 100644 --- a/HoymilesZeroExport.py +++ b/HoymilesZeroExport.py @@ -581,7 +581,7 @@ def CrossCheckLimit(): LimitMax = float(CURRENT_LIMIT[i] + HOY_INVERTER_WATT[i] * 0.05) LimitMin = float(CURRENT_LIMIT[i] - HOY_INVERTER_WATT[i] * 0.05) if not (min(LimitMax, LimitMin) < DTULimitInW < max(LimitMax, LimitMin)): - logger.info("CrossCheckLimit: DTU ({DTULimitInW:.1f}) <> SetLimit ({CURRENT_LIMIT[i]:.1f}). Resend limit to DTU") + logger.info('CrossCheckLimit: DTU ( %s ) <> SetLimit ( %s ). Resend limit to DTU', "{:.1f}".format(DTULimitInW), "{:.1f}".format(CURRENT_LIMIT[i])) DTU.SetLimit(i, CURRENT_LIMIT[i]) except: logger.error("Exception at CrossCheckLimit") @@ -1606,6 +1606,7 @@ def emit(self, record): try: logger.info("---Init---") + newLimitSetpoint = 0 DTU.CheckMinVersion() if GetHoymilesAvailable():