Adjust entity registry access in homekit tests (#88959)
This commit is contained in:
parent
3818e318db
commit
ee78864b05
7 changed files with 149 additions and 130 deletions
|
@ -10,7 +10,7 @@ from homeassistant.components.homekit.accessories import HomeDriver
|
|||
from homeassistant.components.homekit.const import BRIDGE_NAME, EVENT_HOMEKIT_CHANGED
|
||||
from homeassistant.components.homekit.iidmanager import AccessoryIIDStorage
|
||||
|
||||
from tests.common import async_capture_events, mock_device_registry, mock_registry
|
||||
from tests.common import async_capture_events
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
@ -103,18 +103,6 @@ def events(hass):
|
|||
return async_capture_events(hass, EVENT_HOMEKIT_CHANGED)
|
||||
|
||||
|
||||
@pytest.fixture(name="device_reg")
|
||||
def device_reg_fixture(hass):
|
||||
"""Return an empty, loaded, registry."""
|
||||
return mock_device_registry(hass)
|
||||
|
||||
|
||||
@pytest.fixture(name="entity_reg")
|
||||
def entity_reg_fixture(hass):
|
||||
"""Return an empty, loaded, registry."""
|
||||
return mock_registry(hass)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def demo_cleanup(hass):
|
||||
"""Clean up device tracker demo file."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue