From d5d72f3fda14d49cd3c17a5003d98da605a3f0b3 Mon Sep 17 00:00:00 2001 From: Borzutzki Robert Date: Mon, 25 Nov 2024 22:30:09 +0100 Subject: [PATCH] to str --- examples/date-diff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/date-diff.py b/examples/date-diff.py index 662ef42..fae5e3d 100644 --- a/examples/date-diff.py +++ b/examples/date-diff.py @@ -63,7 +63,7 @@ def init_monitor(): # Drawing on the Horizontal image logging.info("1.Drawing on the Horizontal image...") - drawblack.text((4, 0), 'Noch: ' + duration + 'bis', font = font16, fill = 0) + drawblack.text((4, 0), 'Noch: ' + str(duration) + 'bis', font = font16, fill = 0) drawblack.text((4, 16), 'Hausverbrauch', font = font16, fill = 0) drawblack.text((4, 32), 'Strom Import', font = font16, fill = 0) drawblack.text((4, 48), 'Batterie', font = font16, fill = 0)