summaryrefslogtreecommitdiffstats
path: root/glucometerutils/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'glucometerutils/common.py')
-rw-r--r--glucometerutils/common.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/glucometerutils/common.py b/glucometerutils/common.py
index 4c7694c..c11ff2c 100644
--- a/glucometerutils/common.py
+++ b/glucometerutils/common.py
@@ -66,7 +66,7 @@ class GlucoseReading:
default=MeasurementMethod.BLOOD_SAMPLE,
validator=attr.validators.in_(
MeasurementMethod)) # type: MeasurementMethod
- device_id = attr.ib(default=None) # type: int
+ extra_data = attr.ib(factory=dict)
def get_value_as(self, to_unit):
# type: (Unit) -> float
@@ -90,7 +90,7 @@ class KetoneReading:
timestamp = attr.ib() # type: datetime.datetime
value = attr.ib() # type: float
comment = attr.ib(default='') # type: Text
- device_id = attr.ib(default=None) # type: int
+ extra_data = attr.ib(factory=dict)
def as_csv(self, unit):
"""Returns the reading as a formatted comma-separated value string."""
@@ -108,7 +108,7 @@ class TimeAdjustment:
default=MeasurementMethod.TIME,
validator=attr.validators.in_(
MeasurementMethod)) # type: MeasurementMethod
- device_id = attr.ib(default=None) # type: int
+ extra_data = attr.ib(factory=dict)
def as_csv(self, unit):
del unit