mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Update i-j* tests to use entity & device registry fixtures (#103900)
This commit is contained in:
committed by
GitHub
parent
be2cee228c
commit
92b3c0c96b
@@ -119,15 +119,15 @@ async def test_turn_on_intent(hass: HomeAssistant) -> None:
|
||||
assert call.data == {"entity_id": ["light.test_light"]}
|
||||
|
||||
|
||||
async def test_translated_turn_on_intent(hass: HomeAssistant) -> None:
|
||||
async def test_translated_turn_on_intent(
|
||||
hass: HomeAssistant, entity_registry: er.EntityRegistry
|
||||
) -> None:
|
||||
"""Test HassTurnOn intent on domains which don't have the intent."""
|
||||
result = await async_setup_component(hass, "homeassistant", {})
|
||||
result = await async_setup_component(hass, "intent", {})
|
||||
await hass.async_block_till_done()
|
||||
assert result
|
||||
|
||||
entity_registry = er.async_get(hass)
|
||||
|
||||
cover = entity_registry.async_get_or_create("cover", "test", "cover_uid")
|
||||
lock = entity_registry.async_get_or_create("lock", "test", "lock_uid")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user