mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Bump intents package version; hassil==1.0.5; home-assistant-intents==2023.2.22 (#88605)
* Bump hassil and intents versions * Adjust tests to handle abbreviated responses
This commit is contained in:
parent
f97b50f762
commit
59f2b2ad51
@ -7,5 +7,5 @@
|
||||
"integration_type": "system",
|
||||
"iot_class": "local_push",
|
||||
"quality_scale": "internal",
|
||||
"requirements": ["hassil==0.2.6", "home-assistant-intents==2023.1.31"]
|
||||
"requirements": ["hassil==1.0.5", "home-assistant-intents==2023.2.22"]
|
||||
}
|
||||
|
@ -21,10 +21,10 @@ cryptography==39.0.1
|
||||
dbus-fast==1.84.1
|
||||
fnvhash==0.1.0
|
||||
hass-nabucasa==0.61.0
|
||||
hassil==0.2.6
|
||||
hassil==1.0.5
|
||||
home-assistant-bluetooth==1.9.3
|
||||
home-assistant-frontend==20230202.0
|
||||
home-assistant-intents==2023.1.31
|
||||
home-assistant-intents==2023.2.22
|
||||
httpx==0.23.3
|
||||
ifaddr==0.1.7
|
||||
janus==1.0.0
|
||||
|
@ -874,7 +874,7 @@ hass-nabucasa==0.61.0
|
||||
hass_splunk==0.1.1
|
||||
|
||||
# homeassistant.components.conversation
|
||||
hassil==0.2.6
|
||||
hassil==1.0.5
|
||||
|
||||
# homeassistant.components.tasmota
|
||||
hatasmota==0.6.4
|
||||
@ -910,7 +910,7 @@ holidays==0.18.0
|
||||
home-assistant-frontend==20230202.0
|
||||
|
||||
# homeassistant.components.conversation
|
||||
home-assistant-intents==2023.1.31
|
||||
home-assistant-intents==2023.2.22
|
||||
|
||||
# homeassistant.components.home_connect
|
||||
homeconnect==0.7.2
|
||||
|
@ -666,7 +666,7 @@ habitipy==0.2.0
|
||||
hass-nabucasa==0.61.0
|
||||
|
||||
# homeassistant.components.conversation
|
||||
hassil==0.2.6
|
||||
hassil==1.0.5
|
||||
|
||||
# homeassistant.components.tasmota
|
||||
hatasmota==0.6.4
|
||||
@ -693,7 +693,7 @@ holidays==0.18.0
|
||||
home-assistant-frontend==20230202.0
|
||||
|
||||
# homeassistant.components.conversation
|
||||
home-assistant-intents==2023.1.31
|
||||
home-assistant-intents==2023.2.22
|
||||
|
||||
# homeassistant.components.home_connect
|
||||
homeconnect==0.7.2
|
||||
|
@ -79,7 +79,7 @@ async def test_http_processing_intent(
|
||||
"speech": {
|
||||
"plain": {
|
||||
"extra_data": None,
|
||||
"speech": "Turned on my cool light",
|
||||
"speech": "Turned on light",
|
||||
}
|
||||
},
|
||||
"language": hass.config.language,
|
||||
@ -127,7 +127,7 @@ async def test_http_processing_intent_target_ha_agent(
|
||||
"speech": {
|
||||
"plain": {
|
||||
"extra_data": None,
|
||||
"speech": "Turned on my cool light",
|
||||
"speech": "Turned on light",
|
||||
}
|
||||
},
|
||||
"language": hass.config.language,
|
||||
@ -176,7 +176,7 @@ async def test_http_processing_intent_entity_added(
|
||||
"speech": {
|
||||
"plain": {
|
||||
"extra_data": None,
|
||||
"speech": "Turned on my cool light",
|
||||
"speech": "Turned on light",
|
||||
}
|
||||
},
|
||||
"language": hass.config.language,
|
||||
@ -210,7 +210,7 @@ async def test_http_processing_intent_entity_added(
|
||||
"speech": {
|
||||
"plain": {
|
||||
"extra_data": None,
|
||||
"speech": "Turned on friendly light",
|
||||
"speech": "Turned on light",
|
||||
}
|
||||
},
|
||||
"language": hass.config.language,
|
||||
@ -243,7 +243,7 @@ async def test_http_processing_intent_entity_added(
|
||||
"speech": {
|
||||
"plain": {
|
||||
"extra_data": None,
|
||||
"speech": "Turned on late added light",
|
||||
"speech": "Turned on light",
|
||||
}
|
||||
},
|
||||
"language": hass.config.language,
|
||||
@ -278,7 +278,7 @@ async def test_http_processing_intent_entity_added(
|
||||
"speech": {
|
||||
"plain": {
|
||||
"extra_data": None,
|
||||
"speech": "Sorry, I couldn't understand " "that",
|
||||
"speech": "Sorry, I couldn't understand that",
|
||||
}
|
||||
},
|
||||
},
|
||||
@ -783,7 +783,7 @@ async def test_non_default_response(hass: HomeAssistant, init_components) -> Non
|
||||
)
|
||||
)
|
||||
assert len(calls) == 1
|
||||
assert result.response.speech["plain"]["speech"] == "Opened front door"
|
||||
assert result.response.speech["plain"]["speech"] == "Opened"
|
||||
|
||||
|
||||
async def test_turn_on_area(hass: HomeAssistant, init_components) -> None:
|
||||
|
@ -157,19 +157,19 @@ def test_async_validate_slots() -> None:
|
||||
)
|
||||
|
||||
|
||||
async def test_cant_turn_on_sensor(hass: HomeAssistant) -> None:
|
||||
async def test_cant_turn_on_lock(hass: HomeAssistant) -> None:
|
||||
"""Test that we can't turn on entities that don't support it."""
|
||||
assert await async_setup_component(hass, "homeassistant", {})
|
||||
assert await async_setup_component(hass, "conversation", {})
|
||||
assert await async_setup_component(hass, "intent", {})
|
||||
assert await async_setup_component(hass, "sensor", {})
|
||||
assert await async_setup_component(hass, "lock", {})
|
||||
|
||||
hass.states.async_set(
|
||||
"sensor.test", "123", attributes={ATTR_FRIENDLY_NAME: "Test Sensor"}
|
||||
"lock.test", "123", attributes={ATTR_FRIENDLY_NAME: "Test Lock"}
|
||||
)
|
||||
|
||||
result = await conversation.async_converse(
|
||||
hass, "turn on test sensor", None, Context(), None
|
||||
hass, "turn on test lock", None, Context(), None
|
||||
)
|
||||
|
||||
assert result.response.response_type == intent.IntentResponseType.ERROR
|
||||
|
Loading…
x
Reference in New Issue
Block a user