mirror of
https://github.com/bckelley/tconnectsync.git
synced 2026-08-24 03:34:12 -05:00
The settings.details blob differs from the old lastUpload.settings: profile segments live under timeDependentSegments (was tDependentSegs), cgmSettings is flat (highGlucoseAlertMgPerDl/lowGlucoseAlertMgPerDl, not nested per-alert objects), and carbEntry is a string enum. Rework the dataclasses to the new shape (verified against live t:slim X2 and Mobi accounts), keep a tDependentSegs alias for segment consumers, and point tandemsource_profile_store at the flat cgm fields. Values remain milliunit-scaled, so the NS translation math is unchanged.