mirror of
https://github.com/home-assistant/core.git
synced 2025-12-25 05:26:47 +00:00
Update tests c-h to use registry async_get (#47652)
This commit is contained in:
@@ -16,6 +16,7 @@ from homeassistant.const import (
|
||||
STATE_UNAVAILABLE,
|
||||
)
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import entity_registry as er
|
||||
|
||||
from tests.common import mock_coro
|
||||
from tests.components.elgato import init_integration
|
||||
@@ -28,7 +29,7 @@ async def test_light_state(
|
||||
"""Test the creation and values of the Elgato Key Lights."""
|
||||
await init_integration(hass, aioclient_mock)
|
||||
|
||||
entity_registry = await hass.helpers.entity_registry.async_get_registry()
|
||||
entity_registry = er.async_get(hass)
|
||||
|
||||
# First segment of the strip
|
||||
state = hass.states.get("light.frenck")
|
||||
|
||||
Reference in New Issue
Block a user