summaryrefslogtreecommitdiffstats
path: root/glucometerutils/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'glucometerutils/common.py')
-rw-r--r--glucometerutils/common.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/glucometerutils/common.py b/glucometerutils/common.py
index a93ecf0..8e41f07 100644
--- a/glucometerutils/common.py
+++ b/glucometerutils/common.py
@@ -50,10 +50,11 @@ def convert_glucose_unit(value, from_unit, to_unit=None):
class Reading(object):
- def __init__(self, timestamp, value, unit):
+ def __init__(self, timestamp, value, unit, comment=None):
self.timestamp = timestamp
self.value = value
self.unit = unit
+ self.comment = comment or ''
def get_value_as(self, to_unit):
"""Returns the reading value as the given unit.