mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +00:00
Bump intents to 2024.3.27 (#114312)
This commit is contained in:
parent
5aabb2a920
commit
e4d2985589
@ -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.6.1", "home-assistant-intents==2024.3.12"]
|
"requirements": ["hassil==1.6.1", "home-assistant-intents==2024.3.27"]
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@ hass-nabucasa==0.79.0
|
|||||||
hassil==1.6.1
|
hassil==1.6.1
|
||||||
home-assistant-bluetooth==1.12.0
|
home-assistant-bluetooth==1.12.0
|
||||||
home-assistant-frontend==20240307.0
|
home-assistant-frontend==20240307.0
|
||||||
home-assistant-intents==2024.3.12
|
home-assistant-intents==2024.3.27
|
||||||
httpx==0.27.0
|
httpx==0.27.0
|
||||||
ifaddr==0.2.0
|
ifaddr==0.2.0
|
||||||
Jinja2==3.1.3
|
Jinja2==3.1.3
|
||||||
|
@ -1080,7 +1080,7 @@ holidays==0.45
|
|||||||
home-assistant-frontend==20240307.0
|
home-assistant-frontend==20240307.0
|
||||||
|
|
||||||
# homeassistant.components.conversation
|
# homeassistant.components.conversation
|
||||||
home-assistant-intents==2024.3.12
|
home-assistant-intents==2024.3.27
|
||||||
|
|
||||||
# homeassistant.components.home_connect
|
# homeassistant.components.home_connect
|
||||||
homeconnect==0.7.2
|
homeconnect==0.7.2
|
||||||
|
@ -879,7 +879,7 @@ holidays==0.45
|
|||||||
home-assistant-frontend==20240307.0
|
home-assistant-frontend==20240307.0
|
||||||
|
|
||||||
# homeassistant.components.conversation
|
# homeassistant.components.conversation
|
||||||
home-assistant-intents==2024.3.12
|
home-assistant-intents==2024.3.27
|
||||||
|
|
||||||
# homeassistant.components.home_connect
|
# homeassistant.components.home_connect
|
||||||
homeconnect==0.7.2
|
homeconnect==0.7.2
|
||||||
|
@ -331,6 +331,7 @@ async def test_device_area_context(
|
|||||||
|
|
||||||
# Create 2 lights in each area
|
# Create 2 lights in each area
|
||||||
area_lights = defaultdict(list)
|
area_lights = defaultdict(list)
|
||||||
|
all_lights = []
|
||||||
for area in (area_kitchen, area_bedroom):
|
for area in (area_kitchen, area_bedroom):
|
||||||
for i in range(2):
|
for i in range(2):
|
||||||
light_entity = entity_registry.async_get_or_create(
|
light_entity = entity_registry.async_get_or_create(
|
||||||
@ -345,6 +346,7 @@ async def test_device_area_context(
|
|||||||
attributes={ATTR_FRIENDLY_NAME: f"{area.name} light {i}"},
|
attributes={ATTR_FRIENDLY_NAME: f"{area.name} light {i}"},
|
||||||
)
|
)
|
||||||
area_lights[area.id].append(light_entity)
|
area_lights[area.id].append(light_entity)
|
||||||
|
all_lights.append(light_entity)
|
||||||
|
|
||||||
# Create voice satellites in each area
|
# Create voice satellites in each area
|
||||||
entry = MockConfigEntry()
|
entry = MockConfigEntry()
|
||||||
@ -412,7 +414,7 @@ async def test_device_area_context(
|
|||||||
}
|
}
|
||||||
turn_on_calls.clear()
|
turn_on_calls.clear()
|
||||||
|
|
||||||
# Turn off all lights in the area of the otherkj device
|
# Turn off all lights in the area of the other device
|
||||||
result = await conversation.async_converse(
|
result = await conversation.async_converse(
|
||||||
hass,
|
hass,
|
||||||
"turn lights off",
|
"turn lights off",
|
||||||
@ -436,16 +438,18 @@ async def test_device_area_context(
|
|||||||
}
|
}
|
||||||
turn_off_calls.clear()
|
turn_off_calls.clear()
|
||||||
|
|
||||||
# Not providing a device id should not match
|
# Turn on/off all lights also works
|
||||||
for command in ("on", "off"):
|
for command in ("on", "off"):
|
||||||
result = await conversation.async_converse(
|
result = await conversation.async_converse(
|
||||||
hass, f"turn {command} all lights", None, Context(), None
|
hass, f"turn {command} all lights", None, Context(), None
|
||||||
)
|
)
|
||||||
assert result.response.response_type == intent.IntentResponseType.ERROR
|
await hass.async_block_till_done()
|
||||||
assert (
|
assert result.response.response_type == intent.IntentResponseType.ACTION_DONE
|
||||||
result.response.error_code
|
|
||||||
== intent.IntentResponseErrorCode.NO_VALID_TARGETS
|
# All lights should have been targeted
|
||||||
)
|
assert {s.entity_id for s in result.response.matched_states} == {
|
||||||
|
e.entity_id for e in all_lights
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
async def test_error_no_device(hass: HomeAssistant, init_components) -> None:
|
async def test_error_no_device(hass: HomeAssistant, init_components) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user