mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Update tests c-h to use registry async_get (#47652)
This commit is contained in:
@@ -26,7 +26,7 @@ from homeassistant.const import (
|
||||
SERVICE_TURN_OFF,
|
||||
SERVICE_TURN_ON,
|
||||
)
|
||||
from homeassistant.helpers.entity_registry import async_get_registry
|
||||
from homeassistant.helpers import entity_registry as er
|
||||
from homeassistant.helpers.typing import HomeAssistantType
|
||||
import homeassistant.util.color as color_util
|
||||
|
||||
@@ -109,7 +109,7 @@ async def test_setup_config_entry_not_ready_load_state_fail(
|
||||
|
||||
async def test_setup_config_entry_dynamic_instances(hass: HomeAssistantType) -> None:
|
||||
"""Test dynamic changes in the instance configuration."""
|
||||
registry = await async_get_registry(hass)
|
||||
registry = er.async_get(hass)
|
||||
|
||||
config_entry = add_test_config_entry(hass)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user