mirror of
https://github.com/bckelley/tconnectsync.git
synced 2026-08-24 03:34:12 -05:00
Switch choose_device, check, update_profiles, process.py and cli_helpers from the old pump_event_metadata() (reportsfacade) to the normalized pump_metadata() (BFF): tconnectDeviceId -> deviceId (UUID), and lastUpload.settings -> settings. Handle the BFF returning never-uploaded pumps (maxDateWithEvents=None): skip them in the most-recent auto-select and fall back to the first pump; raise a clear NoDevicesFound on an empty account instead of an opaque TypeError. Clean stale comments/docstrings in tandemsource.py. Tests: add tests/sync/tandemsource/test_choose_device.py (11 cases: explicit/auto/never-uploaded/empty/InvalidSerialNumber/stale-warning) and tests/api/test_tandemsource.py (pump_metadata adapter mapping), and update the test_process fixture to the new keys.