Skip to content

conversation: prevent language code mismatches pulling in builtin intents - #22

Merged
charludo merged 1 commit into
mainfrom
fix/language-matching
Jul 13, 2026
Merged

conversation: prevent language code mismatches pulling in builtin intents#22
charludo merged 1 commit into
mainfrom
fix/language-matching

Conversation

@charludo

Copy link
Copy Markdown
Owner
  • un-normalized language, e.g. en-AU, passed to HA to return list lof intents -> works, since HA normalizes internally
  • un-normalized language used to fetch the list of builtin intents -> returns empty set, because the language was not normalized
  • an intent is "custom" when it is not in the builtins -> all intents misclassified as custom
  • startup check and pool building both explode in size and CPU time

Fixed by normalizing the language.

Fixes: #21

@charludo
charludo merged commit 15d7495 into main Jul 13, 2026
3 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.

High CPU usage after updating from 0.1.0 to 0.2.0

1 participant