Skip to content

Commit

Permalink
add processdevicestatus
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoglom committed Dec 12, 2024
1 parent a028cdf commit 3f6010f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tconnectsync/domain/tandemsource/event_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class EventClass(set, Enum):
CGM_START_JOIN_STOP = {*_CGM_START, *_CGM_JOIN, *_CGM_STOP}
CGM_READING = {events.LidCgmDataGxb, events.LidCgmDataG7, events.LidCgmDataFsl2}
USER_MODE = {events.LidAaUserModeChange}
DEVICE_STATUS = {events.LidDailyBasal}

@staticmethod
def for_event(evt):
Expand Down
2 changes: 2 additions & 0 deletions tconnectsync/sync/tandemsource/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from .process_cgm_alert import ProcessCGMAlert
from .process_cgm_start_join_stop import ProcessCGMStartJoinStop
from .process_cgm_reading import ProcessCGMReading
from .process_device_status import ProcessDeviceStatus
from .process_user_mode import ProcessUserMode
from .update_profiles import UpdateProfiles

Expand All @@ -39,6 +40,7 @@ def __init__(self, tconnect, nightscout, tconnectDevice, pretend, secret, featur
EventClass.CGM_START_JOIN_STOP.name: ProcessCGMStartJoinStop,
EventClass.CGM_READING.name: ProcessCGMReading,
EventClass.USER_MODE.name: ProcessUserMode,
EventClass.DEVICE_STATUS.name: ProcessDeviceStatus
}

updater_classes = [
Expand Down

0 comments on commit 3f6010f

Please sign in to comment.