Update tests c-h to use registry async_get (#47652)
This commit is contained in:
parent
ba2978c693
commit
87e7cebd36
49 changed files with 165 additions and 138 deletions
|
@ -4,6 +4,7 @@ from unittest.mock import patch
|
|||
|
||||
from homeassistant.bootstrap import async_setup_component
|
||||
from homeassistant.components import automation, config
|
||||
from homeassistant.helpers import entity_registry as er
|
||||
|
||||
from tests.components.blueprint.conftest import stub_blueprint_populate # noqa: F401
|
||||
|
||||
|
@ -110,7 +111,7 @@ async def test_bad_formatted_automations(hass, hass_client):
|
|||
|
||||
async def test_delete_automation(hass, hass_client):
|
||||
"""Test deleting an automation."""
|
||||
ent_reg = await hass.helpers.entity_registry.async_get_registry()
|
||||
ent_reg = er.async_get(hass)
|
||||
|
||||
assert await async_setup_component(
|
||||
hass,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue