Skip to content

Commit 53d27ab

Browse files
committed
fix Log-String
1 parent a623be0 commit 53d27ab

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

HoymilesZeroExport.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ def CrossCheckLimit():
581581
LimitMax = float(CURRENT_LIMIT[i] + HOY_INVERTER_WATT[i] * 0.05)
582582
LimitMin = float(CURRENT_LIMIT[i] - HOY_INVERTER_WATT[i] * 0.05)
583583
if not (min(LimitMax, LimitMin) < DTULimitInW < max(LimitMax, LimitMin)):
584-
logger.info("CrossCheckLimit: DTU ({DTULimitInW:.1f}) <> SetLimit ({CURRENT_LIMIT[i]:.1f}). Resend limit to DTU")
584+
logger.info('CrossCheckLimit: DTU ( %s ) <> SetLimit ( %s ). Resend limit to DTU', "{:.1f}".format(DTULimitInW), "{:.1f}".format(CURRENT_LIMIT[i]))
585585
DTU.SetLimit(i, CURRENT_LIMIT[i])
586586
except:
587587
logger.error("Exception at CrossCheckLimit")
@@ -1606,6 +1606,7 @@ def emit(self, record):
16061606

16071607
try:
16081608
logger.info("---Init---")
1609+
16091610
newLimitSetpoint = 0
16101611
DTU.CheckMinVersion()
16111612
if GetHoymilesAvailable():

0 commit comments

Comments
 (0)