mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Adjust freebox tests which create devices (#98190)
This commit is contained in:
@@ -3,6 +3,7 @@ from unittest.mock import AsyncMock, patch
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import device_registry as dr
|
||||
|
||||
from .const import (
|
||||
@@ -27,9 +28,10 @@ def mock_path():
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_device_registry_devices(device_registry):
|
||||
def mock_device_registry_devices(hass: HomeAssistant, device_registry):
|
||||
"""Create device registry devices so the device tracker entities are enabled."""
|
||||
config_entry = MockConfigEntry(domain="something_else")
|
||||
config_entry.add_to_hass(hass)
|
||||
|
||||
for idx, device in enumerate(
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user