exclude none

This commit is contained in:
James Woglom
2024-09-19 00:26:04 -04:00
parent 4e4de23e80
commit 454b545e35
2 changed files with 5 additions and 3 deletions
+3 -3
View File
@@ -2360,7 +2360,7 @@ class LidCgmDataGxb(BaseEvent):
Backfill = 2**1
ImmediateMatchValue = 2**2
Calibration = 2**3
None = 2**4
NoneVal = 2**4
@property
def cgmDataType(self):
@@ -2867,7 +2867,7 @@ class LidCgmDataFsl2(BaseEvent):
class CgmdatatypeBitmask(IntFlag):
FiveMinuteReadingFmr = 2**0
Backfill = 2**1
None = 2**4
NoneVal = 2**4
OneMinuteReadingOmr = 2**5
RealTimeReading = 2**6
@@ -3031,7 +3031,7 @@ class LidCgmDataG7(BaseEvent):
Backfill = 2**1
ImmNoLongerApplies = 2**2
Calibration = 2**3
None = 2**4
NoneVal = 2**4
@property
def cgmDataType(self):
+2
View File
@@ -23,6 +23,8 @@ def enumNameFormat(text):
return 'FalseVal'
if t.lower() == 'true':
return 'TrueVal'
if t.lower() == 'none':
return 'NoneVal'
return f'{t[0].upper()}{t[1:]}'