Add suggested area for zwave_js devices (#47250)

This commit is contained in:
Raman Gupta 2021-03-01 18:24:55 -05:00 committed by GitHub
parent c6cfcc2abb
commit 3e34bb3e89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 41 additions and 17 deletions

View file

@ -10,9 +10,7 @@ from zwave_js_server.model.driver import Driver
from zwave_js_server.model.node import Node
from zwave_js_server.version import VersionInfo
from homeassistant.helpers.device_registry import (
async_get_registry as async_get_device_registry,
)
from homeassistant.helpers.device_registry import async_get as async_get_device_registry
from tests.common import MockConfigEntry, load_fixture
@ -20,7 +18,7 @@ from tests.common import MockConfigEntry, load_fixture
@pytest.fixture(name="device_registry")
async def device_registry_fixture(hass):
"""Return the device registry."""
return await async_get_device_registry(hass)
return async_get_device_registry(hass)
@pytest.fixture(name="controller_state", scope="session")