Skip to content

Pair devices into a Hub-saved draft - #21

Merged
MarkParker5 merged 15 commits into
developfrom
feature/pairing-draft
Nov 12, 2026
Merged

MarkParker5 merged 15 commits into
developfrom
feature/pairing-draft

Conversation

@MarkParker5

Copy link
Copy Markdown
Member

Pairing rework, SDK 0.4.0. Part of one change across the SDK, the Hub and the 5 integrations; release the SDK first.

  • pair_device fills a draft the Hub builds and saves only once paired; it is idempotent, like fetch.
  • Device identity split: id is the Hub's (read-only), physical_id is the integration's lookup key.
  • unpair is also the rollback of a failed pairing: best effort, safe to call again; raises the new DeviceUnreachableError when it can't reach the device.
  • DeviceIdTakenError and the platform id check.
  • Output protocol: controller_did_connect_device / controller_did_lose_device take exactly one keyword id, physical_id= or device_id=.
  • Repository lookups are keyword-only.

Tested: unit tests (429 passed); hardware suites on the cage rig through the Hub. Reviewed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant