init home-assistant
This commit is contained in:
15
home-assistant/tests/components/refoss/conftest.py
Normal file
15
home-assistant/tests/components/refoss/conftest.py
Normal file
@@ -0,0 +1,15 @@
|
||||
"""Pytest module configuration."""
|
||||
|
||||
from collections.abc import Generator
|
||||
from unittest.mock import AsyncMock, patch
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_setup_entry() -> Generator[AsyncMock]:
|
||||
"""Override async_setup_entry."""
|
||||
with patch(
|
||||
"homeassistant.components.refoss.async_setup_entry", return_value=True
|
||||
) as mock_setup_entry:
|
||||
yield mock_setup_entry
|
||||
Reference in New Issue
Block a user