From: Sven Hoexter Date: Fri, 27 Aug 2021 12:18:24 +0000 (+0200) Subject: Use python f-string for output formating X-Git-Url: http://git.sven.stormbind.net/?p=sven%2Fscripts.git;a=commitdiff_plain;h=f5b70d2a4161683e3c687f1a70b571241af88308 Use python f-string for output formating --- 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!')