From 11170c63451acf304de35b5393fb79316c50f795 Mon Sep 17 00:00:00 2001 From: Paul Holzinger <45212748+Luap99@users.noreply.github.com> Date: Thu, 4 Jan 2024 21:40:49 +0100 Subject: [PATCH] Pass down language to hassil (#106490) Hassil needs the language to convert numbers, this was added in https://github.com/home-assistant/hassil/pull/78. This fixes an annoying warning from the logs. Fixes #104760 --- homeassistant/components/conversation/default_agent.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/conversation/default_agent.py b/homeassistant/components/conversation/default_agent.py index aae8f67e1d8..19992e63dad 100644 --- a/homeassistant/components/conversation/default_agent.py +++ b/homeassistant/components/conversation/default_agent.py @@ -196,6 +196,7 @@ class DefaultAgent(AbstractConversationAgent): lang_intents, slot_lists, intent_context, + language, ) return result @@ -283,6 +284,7 @@ class DefaultAgent(AbstractConversationAgent): lang_intents: LanguageIntents, slot_lists: dict[str, SlotList], intent_context: dict[str, Any] | None, + language: str, ) -> RecognizeResult | None: """Search intents for a match to user input.""" # Prioritize matches with entity names above area names @@ -292,6 +294,7 @@ class DefaultAgent(AbstractConversationAgent): lang_intents.intents, slot_lists=slot_lists, intent_context=intent_context, + language=language, ): if "name" in result.entities: return result