From ea804d485ebbf5f8bb98b5902e2a32ae69f21040 Mon Sep 17 00:00:00 2001 From: Hans Erik van Elburg Date: Sun, 1 Dec 2019 18:39:21 +0100 Subject: [PATCH] add some documentation for the use of the telegram as an object --- README.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 11ce600..47fc884 100644 --- a/README.rst +++ b/README.rst @@ -205,10 +205,12 @@ Accessing the telegrams information as attributes directly: telegram Out[3]: + telegram.CURRENT_ELECTRICITY_USAGE + Out[4]: telegram.CURRENT_ELECTRICITY_USAGE.value - Out[4]: Decimal('2.027') + Out[5]: Decimal('2.027') telegram.CURRENT_ELECTRICITY_USAGE.unit - Out[5]: 'kW' + Out[6]: 'kW' The telegram object has an iterator, can be used to find all the information elements in the current telegram: