We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6aba0b2 commit 7851bedCopy full SHA for 7851bed
tests/components/zimi/test_config_flow.py
@@ -1,6 +1,7 @@
1
"""Tests for the zimi config flow."""
2
3
-from unittest.mock import MagicMock, patch
+from collections.abc import Generator
4
+from unittest.mock import AsyncMock, MagicMock, patch
5
6
import pytest
7
from zcc import (
@@ -44,6 +45,15 @@ def discovery_mock():
44
45
yield mock
46
47
48
+@pytest.fixture(autouse=True)
49
+def mock_setup_entry() -> Generator[AsyncMock]:
50
+ """Override async_setup_entry."""
51
+ with patch(
52
+ "homeassistant.components.zimi.async_setup_entry", return_value=True
53
+ ) as mock_setup_entry:
54
+ yield mock_setup_entry
55
+
56
57
async def test_user_discovery_success(
58
hass: HomeAssistant,
59
discovery_mock: MagicMock,
0 commit comments