Skip to content

Conversation

@Angelo90810
Copy link

Hello,

I’d like to propose a small improvement to vehicle properties handling.

This change adds support for the vehicle door lock state (lockState) by:

  • Including lockState in the VehicleProperties type
  • Reading the value using GetVehicleDoorLockStatus in getVehicleProperties
  • Applying the value using SetVehicleDoorsLocked in setVehicleProperties

This allows vehicle lock status to be properly saved and restored alongside other vehicle properties.

Let me know if this fits the project direction or if any adjustments are needed. This allows the vehicle lock status to be properly saved and restored alongside other vehicle properties.

Note: Two additional commits and pull requests were accidentally opened during this process and have already been closed. Sorry for the noise.

Thank you!

Hello,

I’d like to propose a small improvement to vehicle properties handling.

This change adds support for the vehicle door lock state (lockState) by:
- Including lockState in the VehicleProperties type
- Reading the value using GetVehicleDoorLockStatus in getVehicleProperties
- Applying the value using SetVehicleDoorsLocked in setVehicleProperties

This allows vehicle lock status to be properly saved and restored alongside other vehicle properties.

Let me know if this fits the project direction or if any adjustments are needed.
This allows the vehicle lock status to be properly saved and restored alongside other vehicle properties.

Note: Two additional commits and pull requests were accidentally opened during this process and have already been closed. Sorry for the noise.

Thank you!


Signed-off-by: Angelo Rodrigues De Morais Barroso <[email protected]>
Copilot AI review requested due to automatic review settings January 17, 2026 19:13
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds support for saving and restoring vehicle door lock state alongside other vehicle properties. The lock state can now be captured when getting vehicle properties and restored when setting them.

Changes:

  • Added lockState field to the VehicleProperties type definition
  • Modified getVehicleProperties to capture the current lock state using GetVehicleDoorLockStatus
  • Modified setVehicleProperties to restore the lock state using SetVehicleDoorsLocked

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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