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 936151f commit 2dadc1fCopy full SHA for 2dadc1f
tests/components/iskra/test_config_flow.py
@@ -1,5 +1,8 @@
1
"""Tests for the Iskra config flow."""
2
3
+from collections.abc import Generator
4
+from unittest.mock import AsyncMock, patch
5
+
6
from pyiskra.exceptions import (
7
DeviceConnectionError,
8
DeviceTimeoutError,
@@ -35,6 +38,15 @@
35
38
from tests.common import MockConfigEntry
36
39
37
40
41
+@pytest.fixture(autouse=True)
42
+def mock_setup_entry() -> Generator[AsyncMock]:
43
+ """Override async_setup_entry."""
44
+ with patch(
45
+ "homeassistant.components.iskra.async_setup_entry", return_value=True
46
+ ) as mock_setup_entry:
47
+ yield mock_setup_entry
48
49
50
# Test step_user with Rest API protocol
51
async def test_user_rest_no_auth(hass: HomeAssistant, mock_pyiskra_rest) -> None:
52
"""Test the user flow with Rest API protocol."""
0 commit comments