From 3f6010fafce42b993f66b75bad93e7274b5e542e Mon Sep 17 00:00:00 2001 From: James Woglom Date: Thu, 12 Dec 2024 00:36:06 -0500 Subject: [PATCH] add processdevicestatus --- tconnectsync/domain/tandemsource/event_class.py | 1 + tconnectsync/sync/tandemsource/process.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/tconnectsync/domain/tandemsource/event_class.py b/tconnectsync/domain/tandemsource/event_class.py index 778ed29..cd144b0 100644 --- a/tconnectsync/domain/tandemsource/event_class.py +++ b/tconnectsync/domain/tandemsource/event_class.py @@ -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): diff --git a/tconnectsync/sync/tandemsource/process.py b/tconnectsync/sync/tandemsource/process.py index 7887c9a..8b17b6c 100644 --- a/tconnectsync/sync/tandemsource/process.py +++ b/tconnectsync/sync/tandemsource/process.py @@ -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 @@ -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 = [