Skip to content

fix stub generator dropping additional_fields entries - #867

Merged
craigbarratt merged 1 commit into
custom-components:masterfrom
dmamelin:fix-stub-additional-fields
Aug 31, 2026
Merged

fix stub generator dropping additional_fields entries#867
craigbarratt merged 1 commit into
custom-components:masterfrom
dmamelin:fix-stub-additional-fields

Conversation

@dmamelin

Copy link
Copy Markdown
Contributor

HA renamed the advanced_fields nesting key to additional_fields (home-assistant/core#171444). The generator only matched the old name, so nested service fields (e.g. light.turn_on's brightness, xy_color, etc.) were silently dropped and additional_fields itself leaked in as a bogus param.

Fixes #866.

Match both key names when flattening nested field sections, plus a regression test covering light.turn_on's shape.

@craigbarratt
craigbarratt merged commit 50831c4 into custom-components:master Aug 31, 2026
6 checks passed
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.

Regression: Generated stubs for light.turn_on are missing fields

2 participants