Skip to content

Commit

Permalink
fix Log-String
Browse files Browse the repository at this point in the history
  • Loading branch information
reserve85 committed Aug 17, 2024
1 parent a623be0 commit 53d27ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion HoymilesZeroExport.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -1606,6 +1606,7 @@ def emit(self, record):

try:
logger.info("---Init---")

newLimitSetpoint = 0
DTU.CheckMinVersion()
if GetHoymilesAvailable():
Expand Down

0 comments on commit 53d27ab

Please sign in to comment.