Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions tests/components/shelly/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -793,10 +793,13 @@ def _initialize():

@pytest.fixture
def mock_setup_entry() -> Generator[AsyncMock]:
"""Override async_setup_entry."""
with patch(
"homeassistant.components.shelly.async_setup_entry", return_value=True
) as mock_setup_entry:
"""Override async_setup_entry and async_unload_entry."""
with (
patch(
"homeassistant.components.shelly.async_setup_entry", return_value=True
) as mock_setup_entry,
patch("homeassistant.components.shelly.async_unload_entry", return_value=True),
):
yield mock_setup_entry


Expand Down
Loading