Skip to content

Vehicle: test feature param consistency for shared include#31321

Merged
andig merged 1 commit into
masterfrom
fix/vehicle-feature-param-consistency
Jun 29, 2026
Merged

Vehicle: test feature param consistency for shared include#31321
andig merged 1 commit into
masterfrom
fix/vehicle-feature-param-consistency

Conversation

@andig

@andig andig commented Jun 29, 2026

Copy link
Copy Markdown
Member

Fix #31306

Online vehicles expose climaterdisabled and autodetectdisabled through the shared vehicle-features include, so a stored configuration can carry either key. When a template renders the include but no longer declares the matching param, reloading that configuration fails with invalid key and the vehicle no longer starts. DB-only setups are hit hardest, since the affected vehicles disappear from the UI. This is what broke offline vehicles in discussion #31291.

This adds a test asserting both toggles stay declared params on every vehicle template that renders the include. The test immediately surfaced that autodetectdisabled was still undeclared on the offline and iso15118 templates, the same defect class that #31297 fixed for climaterdisabled. Both are restored as deprecated params so existing configurations keep validating, following the deprecate, never remove rule.

🤖 Generated with Claude Code

Every online vehicle exposes climaterdisabled and autodetectdisabled via
the vehicle-features include, so a stored config may carry them. If a
template renders the include but no longer declares the param, reloading
that config fails with "invalid key" (discussion #31291).

Add a test asserting both toggles stay declared on every template using
the include. It surfaced that autodetectdisabled was still undeclared on
offline and iso15118 - the same class as the climaterdisabled fix in
#31297 - so restore it there as a deprecated param.
@andig andig added vehicles Specific vehicle support bug Something isn't working labels Jun 29, 2026
@andig andig enabled auto-merge (squash) June 29, 2026 09:33

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@andig andig merged commit cdb2914 into master Jun 29, 2026
28 checks passed
@andig andig deleted the fix/vehicle-feature-param-consistency branch June 29, 2026 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working vehicles Specific vehicle support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Better handling for template changes needed

1 participant