mirror of
https://github.com/jwoglom/tconnectsync.git
synced 2026-08-24 10:14:36 -05:00
Since the 2.0 migration to Tandem Source, the live sync path (api.tandemsource + sync/tandemsource/*) no longer references the legacy t:connect APIs. This removes that now-unreachable code. Removed modules: - api/controliq.py, api/ws2.py, api/android.py, api/webui.py (the legacy controliq / tconnectws2 / android / webui clients) - process.py (old process_time_range; already broken since it imported sync submodules that no longer exist) - parser/ciq_therapy_events.py, parser/tconnect.py (TConnectEntry) - domain/therapy_event.py, domain/bolus.py, domain/device_settings.py, domain/utility.py Trimmed dead wiring from live modules: - api/__init__.py: dropped the controliq/ws2/android/webui properties, keeping only the tandemsource accessor - check.py: removed the unused TConnectEntry import - parser/nightscout.py: removed the unused legacy profile_store() plus the now-orphaned tandem_to_ns_time / tandem_to_ns_time_seconds helpers and InvalidTimeException (the live path uses tandemsource_profile_store) Tests: removed suites covering the deleted modules; pared tests/api/fake.py down to the TConnectApi fake still used by the tandemsource tests. README "Tandem APIs" sections updated to reflect the single Tandem Source API. Full test suite passes (48 passed, 1 skipped). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LQNn3mBG1kXTAdQb9c2jfW
12 lines
304 B
Python
12 lines
304 B
Python
import tconnectsync.api
|
|
|
|
|
|
class TConnectApi(tconnectsync.api.TConnectApi):
|
|
def __init__(self, email=None, password=None):
|
|
if email is not None and password is not None:
|
|
self.with_credentials = True
|
|
else:
|
|
self.with_credentials = False
|
|
|
|
_tandemsource = None
|