diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.com> | 2023-04-16 14:11:43 +0200 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@flameeyes.com> | 2023-04-16 14:11:43 +0200 |
commit | 54e8272ab83b649d06d49c9f7f9df73fe30ddf5b (patch) | |
tree | 6926924e0ac4bf10be019a70817cbb6f61853e9a | |
parent | Update pre-commit config. (diff) | |
download | glucometerutils-54e8272ab83b649d06d49c9f7f9df73fe30ddf5b.tar glucometerutils-54e8272ab83b649d06d49c9f7f9df73fe30ddf5b.tar.gz glucometerutils-54e8272ab83b649d06d49c9f7f9df73fe30ddf5b.tar.bz2 glucometerutils-54e8272ab83b649d06d49c9f7f9df73fe30ddf5b.tar.lz glucometerutils-54e8272ab83b649d06d49c9f7f9df73fe30ddf5b.tar.xz glucometerutils-54e8272ab83b649d06d49c9f7f9df73fe30ddf5b.tar.zst glucometerutils-54e8272ab83b649d06d49c9f7f9df73fe30ddf5b.zip |
-rw-r--r-- | glucometerutils/common.py | 2 | ||||
-rw-r--r-- | glucometerutils/drivers/sdcodefree.py | 1 | ||||
-rw-r--r-- | glucometerutils/drivers/td42xx.py | 1 | ||||
-rw-r--r-- | glucometerutils/drivers/tests/test_contourusb.py | 2 |
4 files changed, 0 insertions, 6 deletions
diff --git a/glucometerutils/common.py b/glucometerutils/common.py index 2760ce8..51a2dd4 100644 --- a/glucometerutils/common.py +++ b/glucometerutils/common.py @@ -56,7 +56,6 @@ def convert_glucose_unit(value: float, from_unit: Unit, to_unit: Unit) -> float: @attr.s(auto_attribs=True) class GlucoseReading: - timestamp: datetime.datetime value: float meal: Meal = attr.ib(default=Meal.NONE, validator=attr.validators.in_(Meal)) @@ -88,7 +87,6 @@ class GlucoseReading: @attr.s(auto_attribs=True) class KetoneReading: - timestamp: datetime.datetime value: float comment: str = "" diff --git a/glucometerutils/drivers/sdcodefree.py b/glucometerutils/drivers/sdcodefree.py index 395793a..33eb21d 100644 --- a/glucometerutils/drivers/sdcodefree.py +++ b/glucometerutils/drivers/sdcodefree.py @@ -94,7 +94,6 @@ class Device(serial.SerialDevice, driver.GlucometerDevice): return pkt.message def wait_and_ready(self) -> int: - challenge = b"\0" while challenge == b"\0": challenge = self.serial_.read(1) diff --git a/glucometerutils/drivers/td42xx.py b/glucometerutils/drivers/td42xx.py index 0487029..80df118 100644 --- a/glucometerutils/drivers/td42xx.py +++ b/glucometerutils/drivers/td42xx.py @@ -140,7 +140,6 @@ def _select_record(record_id: int) -> bytes: class Device(serial.SerialDevice, driver.GlucometerDevice): - BAUDRATE = 19200 TIMEOUT = 0.5 diff --git a/glucometerutils/drivers/tests/test_contourusb.py b/glucometerutils/drivers/tests/test_contourusb.py index edda495..107b4d4 100644 --- a/glucometerutils/drivers/tests/test_contourusb.py +++ b/glucometerutils/drivers/tests/test_contourusb.py @@ -14,7 +14,6 @@ from glucometerutils.support import contourusb class TestContourUSB(absltest.TestCase): - header_record = b"\x04\x021H|\\^&||7w3LBL|Bayer7390^01.24\\01.04\\09.02.20^7390-2336773^7403-|A=1^C=63^G=1^I=0200^R=0^S=1^U=0^V=10600^X=070070070070180130150250^Y=360126090050099050300089^Z=1|1714||||||1|201909221304\r\x17D7\r\n\x05" mock_dev = Mock() @@ -42,7 +41,6 @@ class TestContourUSB(absltest.TestCase): ) def test_parse_header_record(self): - _RECORD_FORMAT = contourusb._RECORD_FORMAT header_record_decoded = self.header_record.decode() |