1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Update tests t-z to use async_get() instead of async_get_registry() (#47655)

This commit is contained in:
Erik Montnemery
2021-03-09 14:25:03 +01:00
committed by GitHub
parent 78b21b1ad1
commit b3fecb1c95
34 changed files with 171 additions and 170 deletions

View File

@@ -23,7 +23,7 @@ from homeassistant.components.zwave_js.api import (
VALUE,
)
from homeassistant.components.zwave_js.const import DOMAIN
from homeassistant.helpers.device_registry import async_get_registry
from homeassistant.helpers import device_registry as dr
async def test_websocket_api(hass, integration, multisensor_6, hass_ws_client):
@@ -197,7 +197,7 @@ async def test_remove_node(
# Add mock node to controller
client.driver.controller.nodes[67] = nortek_thermostat
dev_reg = await async_get_registry(hass)
dev_reg = dr.async_get(hass)
# Create device registry entry for mock node
device = dev_reg.async_get_or_create(