From db97ad3f0aa149f5c6757902056aedebe567abae Mon Sep 17 00:00:00 2001 From: firstmate crewmate Date: Thu, 23 Jul 2026 09:34:33 +1000 Subject: [PATCH] chore(vehicle): remove internal Group-N comment labels These were implementation-grouping artifacts from development, not library concepts, and should not be in the public repo. --- tesla_fleet_api/tesla/vehicle/bluetooth.py | 2 -- tesla_fleet_api/tesla/vehicle/commands.py | 36 ---------------------- 2 files changed, 38 deletions(-) diff --git a/tesla_fleet_api/tesla/vehicle/bluetooth.py b/tesla_fleet_api/tesla/vehicle/bluetooth.py index 44b1964..ac144cf 100644 --- a/tesla_fleet_api/tesla/vehicle/bluetooth.py +++ b/tesla_fleet_api/tesla/vehicle/bluetooth.py @@ -966,8 +966,6 @@ def _disarm_broadcast_confirmation( ): del self._broadcast_watchers[domain] - # Group 12: VCSEC closures (Bluetooth-only for individual doors) - async def open_front_driver_door(self) -> dict[str, Any]: """Unlatches/opens the front driver door.""" return await self._sendVehicleSecurity( diff --git a/tesla_fleet_api/tesla/vehicle/commands.py b/tesla_fleet_api/tesla/vehicle/commands.py index 43252cf..9f96d26 100644 --- a/tesla_fleet_api/tesla/vehicle/commands.py +++ b/tesla_fleet_api/tesla/vehicle/commands.py @@ -128,32 +128,26 @@ NavigationRequest, NavigationSuperchargerRequest, NavigationWaypointsRequest, - # Group 1: Steering wheel heat level StwHeatLevelAction, - # Group 2: General infotainment HvacRecirculationAction, DashcamSaveClipAction, SetSuspensionLevelAction, StartLightShowAction, StopLightShowAction, CancelSohTestAction, - # Group 3: Schedules RemoveChargeScheduleAction, RemovePreconditionScheduleAction, BatchRemoveChargeSchedulesAction, BatchRemovePreconditionSchedulesAction, - # Group 4: Powershare SetPowershareFeatureAction, SetPowershareRequestAction, SetPowershareDischargeLimitAction, - # Group 5: Outlets & power feeds SetOutletsOnOffAction, SetOutletTimerAction, SetOutletSocLimitAction, SetPowerFeedOnOffAction, SetPowerFeedTimerAction, SetPowerFeedSocLimitAction, - # Group 6: Lighting SetLightbarBrightnessAction, SetLightbarMiddleAction, SetLightbarDitchAction, @@ -161,26 +155,19 @@ SetTrailerLightTestStartStopAction, SetTruckBedLightAutoStateAction, SetTruckBedLightBrightnessAction, - # Group 7: Tent mode SetTentModeRequestAction, - # Group 8: Parental controls ParentalControlsAction, ParentalControlsClearPinAction, ParentalControlsClearPinAdminAction, ParentalControlsEnableSettingsAction, ParentalControlsSetSpeedLimitAction, - # Group 9: Charge on solar UpdateChargeOnSolarFeatureRequest, GetChargeOnSolarFeatureRequest, ChargeOnSolarFeature, - # Group 10: Navigation NavigationGpsDestinationRequest, - # Group 11: Admin VehicleControlResetPinToDriveAdminAction, - # Group 12: Power modes SetLowPowerModeAction, SetKeepAccessoryPowerModeAction, - # Group 18: Niche/low-certainty-value commands (captain full-coverage directive) PiiKeyRequest, PseudonymSyncRequest, TeslaAuthResponseAction, @@ -1862,8 +1849,6 @@ async def fleet_telemetry_config_create( # fleet_telemetry_config_get doesnt require signing # fleet_telemetry_config_delete doesnt require signing - # Group 2: New infotainment commands — general - async def set_recirculation(self, on: bool) -> dict[str, Any]: """Sets HVAC recirculation mode on/off.""" return await self._sendInfotainment( @@ -1933,8 +1918,6 @@ async def cancel_soh_test(self) -> dict[str, Any]: ) ) - # Group 3: Schedule commands - async def add_charge_schedule( self, days_of_week: str | int, @@ -2051,8 +2034,6 @@ async def batch_remove_precondition_schedules( ) ) - # Group 4: Cybertruck — powershare - async def set_powershare_feature(self, on: bool) -> dict[str, Any]: """Enables or disables the Powershare feature.""" return await self._sendInfotainment( @@ -2097,8 +2078,6 @@ async def set_powershare_discharge_limit(self, percent: int) -> dict[str, Any]: ) ) - # Group 5: Cybertruck — outlets & power feeds - async def set_outlets(self, request: int) -> dict[str, Any]: """Sets outlets on/off (0=off, 1=cabin+bed, 2=cabin).""" return await self._sendInfotainment( @@ -2165,8 +2144,6 @@ async def set_power_feed_soc_limit(self, percent: int) -> dict[str, Any]: ) ) - # Group 6: Cybertruck — lighting - async def set_lightbar_brightness(self, brightness: int) -> dict[str, Any]: """Sets the lightbar brightness.""" return await self._sendInfotainment( @@ -2263,8 +2240,6 @@ async def set_truck_bed_light_brightness(self, brightness: int) -> dict[str, Any ) ) - # Group 7: Cybertruck — tent mode - async def set_tent_mode(self, on: bool) -> dict[str, Any]: """Enables or disables tent mode.""" return await self._sendInfotainment( @@ -2275,8 +2250,6 @@ async def set_tent_mode(self, on: bool) -> dict[str, Any]: ) ) - # Group 8: Parental controls - async def parental_controls(self, activate: bool, pin: str) -> dict[str, Any]: """Activates or deactivates parental controls with PIN.""" return await self._sendInfotainment( @@ -2340,8 +2313,6 @@ async def parental_controls_set_speed_limit( ) ) - # Group 9: Charge on solar - async def update_charge_on_solar( self, enabled: bool, lower_charge_limit: float, upper_charge_limit: float ) -> dict[str, Any]: @@ -2371,8 +2342,6 @@ async def get_charge_on_solar(self) -> dict[str, Any]: mutating=False, ) - # Group 10: Navigation - async def navigation_gps_destination_request( self, lat: float, lon: float, destination: str, order: int ) -> dict[str, Any]: @@ -2394,8 +2363,6 @@ async def navigation_gps_destination_request( ) ) - # Group 11: Admin - async def reset_pin_to_drive_admin(self) -> dict[str, Any]: """Resets PIN to Drive as admin (fleet manager/owner). Requires firmware 2023.44+.""" return await self._sendInfotainment( @@ -2406,8 +2373,6 @@ async def reset_pin_to_drive_admin(self) -> dict[str, Any]: ) ) - # Group 12: VCSEC — closures & RKE - async def open_tonneau(self) -> dict[str, Any]: """Opens the tonneau cover.""" return await self._sendVehicleSecurity( @@ -2444,7 +2409,6 @@ async def auto_secure_vehicle(self) -> dict[str, Any]: UnsignedMessage(RKEAction=RKEAction_E.RKE_ACTION_AUTO_SECURE_VEHICLE) ) - # Group 18: Niche/low-certainty-value commands # # Included per the captain's full-proto-coverage directive; each has no # known third-party consumer use case today, unlike every other command