From 71fd1e1c58ec02ca595e75cc7982ccabc720456b Mon Sep 17 00:00:00 2001 From: mischa Date: Sun, 3 Nov 2019 17:08:36 +0100 Subject: [PATCH] max string length for name, 32 --- temperature.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/temperature.py b/temperature.py index e71d026..db7eae1 100755 --- a/temperature.py +++ b/temperature.py @@ -64,8 +64,8 @@ for key in sensors: updated = json_data.get(i)['state']['lastupdated'][-8:] temperature = round((json_data.get(i)['state']['temperature'] / 100), 1) if verbose: - print (f"{name:<30s} - {temperature}C (updated: {updated} UTC)") + print (f"{name:<32s} - {temperature}C (updated: {updated} UTC)") elif debug: - print (f"{name:<30s} - {temperature}C (updated: {updated} UTC - sensor: {i})") + print (f"{name:<32s} - {temperature}C (updated: {updated} UTC - sensor: {i})") else: - print (f"{name:<30s} - {temperature}C") + print (f"{name:<32s} - {temperature}C")