diff --git a/homeassistant/components/conversation/default_agent.py b/homeassistant/components/conversation/default_agent.py index 3be3f8cfc6f..78002b42f69 100644 --- a/homeassistant/components/conversation/default_agent.py +++ b/homeassistant/components/conversation/default_agent.py @@ -257,9 +257,9 @@ class DefaultAgent(AbstractConversationAgent): # This is available in the response template as "state". state1: core.State | None = None if intent_response.matched_states: - state1 = intent_response.matched_states[0] + state1 = matched[0] elif intent_response.unmatched_states: - state1 = intent_response.unmatched_states[0] + state1 = unmatched[0] # Render response template speech = response_template.async_render( diff --git a/homeassistant/components/conversation/manifest.json b/homeassistant/components/conversation/manifest.json index 5e4e2e8902e..7630eed01f1 100644 --- a/homeassistant/components/conversation/manifest.json +++ b/homeassistant/components/conversation/manifest.json @@ -7,5 +7,5 @@ "integration_type": "system", "iot_class": "local_push", "quality_scale": "internal", - "requirements": ["hassil==1.0.5", "home-assistant-intents==2023.2.22"] + "requirements": ["hassil==1.0.6", "home-assistant-intents==2023.2.28"] } diff --git a/homeassistant/package_constraints.txt b/homeassistant/package_constraints.txt index 16b1969f61b..4a00b05d21b 100644 --- a/homeassistant/package_constraints.txt +++ b/homeassistant/package_constraints.txt @@ -21,10 +21,10 @@ cryptography==39.0.1 dbus-fast==1.84.1 fnvhash==0.1.0 hass-nabucasa==0.61.0 -hassil==1.0.5 +hassil==1.0.6 home-assistant-bluetooth==1.9.3 home-assistant-frontend==20230227.0 -home-assistant-intents==2023.2.22 +home-assistant-intents==2023.2.28 httpx==0.23.3 ifaddr==0.1.7 janus==1.0.0 diff --git a/requirements_all.txt b/requirements_all.txt index 619e5cc014b..58eb01371bf 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -874,7 +874,7 @@ hass-nabucasa==0.61.0 hass_splunk==0.1.1 # homeassistant.components.conversation -hassil==1.0.5 +hassil==1.0.6 # homeassistant.components.tasmota hatasmota==0.6.4 @@ -910,7 +910,7 @@ holidays==0.18.0 home-assistant-frontend==20230227.0 # homeassistant.components.conversation -home-assistant-intents==2023.2.22 +home-assistant-intents==2023.2.28 # homeassistant.components.home_connect homeconnect==0.7.2 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index b0191b62c36..7e23d75ecb2 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -666,7 +666,7 @@ habitipy==0.2.0 hass-nabucasa==0.61.0 # homeassistant.components.conversation -hassil==1.0.5 +hassil==1.0.6 # homeassistant.components.tasmota hatasmota==0.6.4 @@ -693,7 +693,7 @@ holidays==0.18.0 home-assistant-frontend==20230227.0 # homeassistant.components.conversation -home-assistant-intents==2023.2.22 +home-assistant-intents==2023.2.28 # homeassistant.components.home_connect homeconnect==0.7.2 diff --git a/tests/helpers/test_intent.py b/tests/helpers/test_intent.py index 9ea95231b2f..7211f2bb9b4 100644 --- a/tests/helpers/test_intent.py +++ b/tests/helpers/test_intent.py @@ -173,4 +173,4 @@ async def test_cant_turn_on_lock(hass: HomeAssistant) -> None: ) assert result.response.response_type == intent.IntentResponseType.ERROR - assert result.response.error_code == intent.IntentResponseErrorCode.FAILED_TO_HANDLE + assert result.response.error_code == intent.IntentResponseErrorCode.NO_INTENT_MATCH