max string length for name, 32
This commit is contained in:
parent
22840c19be
commit
71fd1e1c58
|
@ -64,8 +64,8 @@ for key in sensors:
|
||||||
updated = json_data.get(i)['state']['lastupdated'][-8:]
|
updated = json_data.get(i)['state']['lastupdated'][-8:]
|
||||||
temperature = round((json_data.get(i)['state']['temperature'] / 100), 1)
|
temperature = round((json_data.get(i)['state']['temperature'] / 100), 1)
|
||||||
if verbose:
|
if verbose:
|
||||||
print (f"{name:<30s} - {temperature}C (updated: {updated} UTC)")
|
print (f"{name:<32s} - {temperature}C (updated: {updated} UTC)")
|
||||||
elif debug:
|
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:
|
else:
|
||||||
print (f"{name:<30s} - {temperature}C")
|
print (f"{name:<32s} - {temperature}C")
|
||||||
|
|
Loading…
Reference in New Issue