From 46f001bba0f98f75e3960c325383274713beb03e Mon Sep 17 00:00:00 2001 From: Robert Borzutzki Date: Wed, 19 Oct 2022 21:09:33 +0200 Subject: [PATCH] int to str for logging --- examples/mqtt.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/mqtt.py b/examples/mqtt.py index aaa130a..0e60af8 100644 --- a/examples/mqtt.py +++ b/examples/mqtt.py @@ -125,11 +125,11 @@ try: print("-----") logging.info("test") - logging.info("PvP: "+value_pvProduction) - logging.info("Hou: "+value_wHouseConsumption) - logging.info("I/E: "+value_energyImportExport) - logging.info("SoC: "+value_houseBatterySoC) - logging.info("Bio: "+value_houseBatteryLoadUnload) + logging.info("PvP: "+str(value_pvProduction)) + logging.info("Hou: "+str(value_wHouseConsumption)) + logging.info("I/E: "+str(value_energyImportExport)) + logging.info("SoC: "+str(value_houseBatterySoC)) + logging.info("Bio: "+str(value_houseBatteryLoadUnload)) #drawblack.rectangle((150, 0, 220, 50), fill = 255) drawblack.text((150, 0), value_pvProduction, font = font10, fill = 0) #drawblack.rectangle((150, 15, 220, 50), fill = 255)