Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ES] HassShoppingListAddItem chops mid-sentence #2053

Closed
cibernox opened this issue Mar 7, 2024 · 1 comment
Closed

[ES] HassShoppingListAddItem chops mid-sentence #2053

cibernox opened this issue Mar 7, 2024 · 1 comment

Comments

@cibernox
Copy link
Contributor

cibernox commented Mar 7, 2024

I tried to reproduce adding an example to the tests, but somehow my example seems to work when using the test harness, but it fails un 2024.2 and 2023.3, released mere hours ago.

The sentence Añade pepinillos a la lista it's recognized as:

intent:
  name: HassShoppingListAddItem
slots:
  item: pepinillos a l
details:
  item:
    name: item
    value: pepinillos a l
    text: pepinillos a l
targets: {}
match: true
sentence_template: <añadir> <item> <my_list>
unmatched_slots: {}
source: builtin

So I end up with an item named "pepinillos a l" in the shopping list.

I did try to understand why this could be happening based on the pattern:

      - sentences:
          - <añadir> <item> <my_list>
        response: item_added
        expansion_rules:
          my_list: "(en|a) [mi|la] lista [de] [la] [compra]"
          item: "{shopping_list_item:item}"

But honestly I can see anything wrong at first glance, unless it's a whitespace thing.

@tetele
Copy link
Contributor

tetele commented Mar 7, 2024

Duplicate of #1602
Related to home-assistant/hassil#92

@tetele tetele closed this as completed Mar 7, 2024
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

No branches or pull requests

2 participants