Skip to content

Align Tessie vehicle methods with the current Tessie API docs - #227

Merged
Bre77 merged 1 commit into
mainfrom
fm/tessie-docs-fixes
Nov 12, 2026
Merged

Bre77 merged 1 commit into
mainfrom
fm/tessie-docs-fixes

Conversation

@Bre77

@Bre77 Bre77 commented Nov 12, 2026

Copy link
Copy Markdown
Member

Brings the Tessie vehicle methods back in line with Tessie's API reference. Adds tessie_release_notes() (named with the tessie_ prefix because release_notes(staged, language) is already inherited from the Fleet API proxy and an override would break positional callers) and roles(). firmware_alerts() gains optional start/end. set_drive_tag now sends drives as the documented comma-separated string instead of a JSON array. drives types exclude_tag and exclude_driver_profile as bool | None. map() could never work because the endpoint returns a PNG and the request layer only reads JSON: it now returns bytes through a new GET-only _request_bytes on the shared client, which leaves _request untouched, so no other caller changes behaviour, and marker_size is an int. format="csv" is still unsupported and is now noted in the docstrings and docs/tessie.md. All existing signatures stay backward compatible; docs/tessie.md and tests/test_tessie_vehicle_params.py are updated, and the version is not bumped.

@coderabbitai

coderabbitai Bot commented Nov 12, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab.

Next included review available in 39 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 75 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 3537ddf and 6597fb2.

Files selected for processing: 5

  • docs/tessie.md
  • tesla_fleet_api/tesla/fleet.py
  • tesla_fleet_api/tessie/tessie.py
  • tesla_fleet_api/tessie/vehicle.py
  • tests/test_tessie_vehicle_params.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@gitar-bot

gitar-bot Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Changing set_drive_tag to send comma-separated drive IDs could cause the Tessie API to apply tags to unintended drive records.

Aligns Tessie vehicle methods with the current Tessie API reference, adding tessie_release_notes() and roles(), optional start/end on firmware_alerts(), and comma-separated drives for set_drive_tag. map() now returns PNG bytes via a new GET-only _request_bytes, leaving _request unchanged. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Approved

For more verification details, comment gitar display:verbose.

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Important

Your trial ends in 7 days — upgrade now to keep code review, CI analysis, auto-apply, custom automations, and more.

Was this helpful? React with 👍 / 👎 | Gitar

@gitar-bot gitar-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Gitar has auto-approved this PR (configure)

@Bre77
Bre77 merged commit 737d9de into main Nov 12, 2026
8 checks passed
@Bre77
Bre77 deleted the fm/tessie-docs-fixes branch November 12, 2026 11:25
@Bre77 Bre77 mentioned this pull request Nov 12, 2026
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