Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion homeassistant/components/conversation/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
4 changes: 2 additions & 2 deletions homeassistant/package_constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
14 changes: 7 additions & 7 deletions tests/components/conversation/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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",
}
},
},
Expand Down Expand Up @@ -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:
Expand Down
8 changes: 4 additions & 4 deletions tests/helpers/test_intent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down