Add missing mock in aemet config flow tests (#89360)

This commit is contained in:
epenet
2023-03-08 16:18:44 +01:00
committed by GitHub
parent 33906059d3
commit 3e2ee7cd11
2 changed files with 20 additions and 6 deletions

View File

@@ -0,0 +1,14 @@
"""Test fixtures for aemet."""
from collections.abc import Generator
from unittest.mock import AsyncMock, patch
import pytest
@pytest.fixture
def mock_setup_entry() -> Generator[AsyncMock, None, None]:
"""Override async_setup_entry."""
with patch(
"homeassistant.components.aemet.async_setup_entry", return_value=True
) as mock_setup_entry:
yield mock_setup_entry