From f5b70d2a4161683e3c687f1a70b571241af88308 Mon Sep 17 00:00:00 2001 From: Sven Hoexter Date: Fri, 27 Aug 2021 14:18:24 +0200 Subject: [PATCH] Use python f-string for output formating --- home/portalmonitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/portalmonitor.py b/home/portalmonitor.py index 2264206..1316b2f 100755 --- a/home/portalmonitor.py +++ b/home/portalmonitor.py @@ -75,7 +75,7 @@ if isDaylight(conf['config'].getfloat('lat'), conf['config'].getfloat('lon'), conf['config']['stationId']) if options.printStatus: - print('Current Power: ' + str(currentPower)) + print(f"Current Power: {currentPower}") if currentPower == 0: print('Error: Power dropped to 0 but we should have daylight!') -- 2.39.2