You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: normalize automation GET config for round-trip compatibility (#221)
Home Assistant automation GET API returns config with:
- Plural field names (triggers, actions, conditions)
- 'trigger' key inside trigger objects for platform type
But the SET API expects:
- Singular field names (trigger, action, condition)
- 'platform' key inside trigger objects
This fix applies _normalize_config_for_roundtrip() to the GET
response, ensuring configs retrieved via ha_config_get_automation
can be directly passed to ha_config_set_automation without manual
transformation.
Fixes#220
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments