Add comprehensive Tessie API endpoint coverage#27
Merged
Conversation
This commit significantly expands the Tessie API implementation to include all custom endpoints available in the Tessie API reference documentation. Changes to tesla_fleet_api/tessie/tessie.py: - Add historical data endpoints: states, drives, charges, idles, path - Add location and mapping endpoints: location, map, weather - Add battery and tire monitoring: consumption_since_charge, tire_pressure - Add firmware and alert endpoints: firmware_alerts, vehicle_status - Add fleet-wide endpoints: charging_invoices, all_battery_health - Add license plate management: plate, update_plate Changes to tesla_fleet_api/tessie/vehicles.py: - Add complete set of vehicle command endpoints with wait_for_completion support - Add climate control commands: start/stop climate, temperature, seat heat/cool - Add trunk and window commands: activate trunks, vent/close windows - Add charging commands: start/stop charging, set limits and amps - Add security commands: lock/unlock, sentry mode, valet mode, guest mode - Add software update commands: schedule and cancel updates - Add scheduling commands: scheduled charging and departure - Add driver management endpoints: list, delete, invite drivers - Add fleet telemetry configuration endpoints - Add data management: set drive tags and charge costs - Prefix conflicting method names with 'tessie_' to avoid parent class conflicts All changes pass pyright type checking and ruff linting.
Moved tire_pressure, vehicle_status, plate, and update_plate from the main Tessie class to TessieVehicle class where they belong. These methods operate on a specific vehicle and should use self.vin instead of taking a VIN parameter. This follows the established pattern where vehicle-specific operations are in the Vehicle class (using self.vin) while fleet-wide operations remain in the main API class.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit significantly expands the Tessie API implementation to include
all custom endpoints available in the Tessie API reference documentation.
Changes to tesla_fleet_api/tessie/tessie.py:
Changes to tesla_fleet_api/tessie/vehicles.py:
All changes pass pyright type checking and ruff linting.