Add HassNevermind intent (bump intents package) (#102131)

* Add HassNevermind intent

* Bump intents package to 2023.10.16
This commit is contained in:
Michael Hansen 2023-10-16 19:13:26 -05:00 committed by GitHub
parent 6d457e808f
commit 25671a2e42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 29 additions and 4 deletions

View file

@ -283,3 +283,13 @@ async def test_shopping_list_add_item(
assert result.response.speech == {
"plain": {"speech": "Added apples", "extra_data": None}
}
async def test_nevermind_item(hass: HomeAssistant, init_components) -> None:
"""Test HassNevermind intent through the default agent."""
result = await conversation.async_converse(hass, "nevermind", None, Context())
assert result.response.intent is not None
assert result.response.intent.intent_type == intent.INTENT_NEVERMIND
assert result.response.response_type == intent.IntentResponseType.ACTION_DONE
assert not result.response.speech