add some documentation for the use of the telegram as an object

This commit is contained in:
Hans Erik van Elburg
2019-12-01 17:47:22 +01:00
parent d712d468ac
commit a137ef0e02
2 changed files with 113 additions and 3 deletions

View File

@@ -46,7 +46,7 @@ class Telegram(object):
def __str__(self):
output = ""
for attr,value in self:
for attr, value in self:
output += "{}: \t {} \t[{}]\n".format(attr,str(value.value),str(value.unit))
return output