Skip to content

feat: add auth_key property to Tile - #807

Open
joostlek wants to merge 1 commit into
bachya:devfrom
joostlek:clanker/auth-key-model-exposure-0e3e5a
Open

joostlek wants to merge 1 commit into
bachya:devfrom
joostlek:clanker/auth-key-model-exposure-0e3e5a

Conversation

@joostlek

@joostlek joostlek commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Describe what the PR does:

Adds an auth_key property to Tile. Consumers need this key to talk to a Tile directly over Bluetooth. It returns None when the API sends no key.

Does this fix a specific issue?

Fixes https://github.com/bachya/pytile/issues/

Checklist:

  • Confirm that one or more new tests are written for the new functionality.
  • Run tests and ensure everything passes (with 100% test coverage).
  • Update README.md with any new documentation.

🤖 Generated with Claude Code

Expose the Tile's `auth_key` from the tile details response. The key is
null for some Tiles, so the property uses `.get` and returns None in that
case. It is left out of `as_dict()` so that it does not end up in dumps
such as diagnostics.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@bachya bachya left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Can be merged once CI passes.

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.

2 participants