Update intent sentences package (#88933)

* Actually use translated state names in response

* Change test result now that locks are excluded from HassTurnOn

* Bump home-assistant-intents and hassil versions
pull/88882/merge
Michael Hansen 2023-02-28 20:07:18 -06:00 committed by GitHub
parent c5e39f7039
commit e0bdb3ecc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 10 deletions

View File

@ -257,9 +257,9 @@ class DefaultAgent(AbstractConversationAgent):
# This is available in the response template as "state". # This is available in the response template as "state".
state1: core.State | None = None state1: core.State | None = None
if intent_response.matched_states: if intent_response.matched_states:
state1 = intent_response.matched_states[0] state1 = matched[0]
elif intent_response.unmatched_states: elif intent_response.unmatched_states:
state1 = intent_response.unmatched_states[0] state1 = unmatched[0]
# Render response template # Render response template
speech = response_template.async_render( speech = response_template.async_render(

View File

@ -7,5 +7,5 @@
"integration_type": "system", "integration_type": "system",
"iot_class": "local_push", "iot_class": "local_push",
"quality_scale": "internal", "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"]
} }

View File

@ -21,10 +21,10 @@ cryptography==39.0.1
dbus-fast==1.84.1 dbus-fast==1.84.1
fnvhash==0.1.0 fnvhash==0.1.0
hass-nabucasa==0.61.0 hass-nabucasa==0.61.0
hassil==1.0.5 hassil==1.0.6
home-assistant-bluetooth==1.9.3 home-assistant-bluetooth==1.9.3
home-assistant-frontend==20230227.0 home-assistant-frontend==20230227.0
home-assistant-intents==2023.2.22 home-assistant-intents==2023.2.28
httpx==0.23.3 httpx==0.23.3
ifaddr==0.1.7 ifaddr==0.1.7
janus==1.0.0 janus==1.0.0

View File

@ -874,7 +874,7 @@ hass-nabucasa==0.61.0
hass_splunk==0.1.1 hass_splunk==0.1.1
# homeassistant.components.conversation # homeassistant.components.conversation
hassil==1.0.5 hassil==1.0.6
# homeassistant.components.tasmota # homeassistant.components.tasmota
hatasmota==0.6.4 hatasmota==0.6.4
@ -910,7 +910,7 @@ holidays==0.18.0
home-assistant-frontend==20230227.0 home-assistant-frontend==20230227.0
# homeassistant.components.conversation # homeassistant.components.conversation
home-assistant-intents==2023.2.22 home-assistant-intents==2023.2.28
# homeassistant.components.home_connect # homeassistant.components.home_connect
homeconnect==0.7.2 homeconnect==0.7.2

View File

@ -666,7 +666,7 @@ habitipy==0.2.0
hass-nabucasa==0.61.0 hass-nabucasa==0.61.0
# homeassistant.components.conversation # homeassistant.components.conversation
hassil==1.0.5 hassil==1.0.6
# homeassistant.components.tasmota # homeassistant.components.tasmota
hatasmota==0.6.4 hatasmota==0.6.4
@ -693,7 +693,7 @@ holidays==0.18.0
home-assistant-frontend==20230227.0 home-assistant-frontend==20230227.0
# homeassistant.components.conversation # homeassistant.components.conversation
home-assistant-intents==2023.2.22 home-assistant-intents==2023.2.28
# homeassistant.components.home_connect # homeassistant.components.home_connect
homeconnect==0.7.2 homeconnect==0.7.2

View File

@ -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.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