1
0
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:
Erik Montnemery
2023-08-10 18:22:44 +02:00
committed by GitHub
parent 52183d64ae
commit 983ebeff80
3 changed files with 12 additions and 6 deletions

View File

@@ -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(
(