mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Add type hint to mock_async_zeroconf in test fixtures (#119057)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
"""Fixtures for tests."""
|
||||
|
||||
from unittest.mock import patch
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
import pytest
|
||||
from typing_extensions import Generator
|
||||
@@ -39,5 +39,5 @@ def patch_mydevolo(credentials_valid: bool, maintenance: bool) -> Generator[None
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def devolo_home_control_mock_async_zeroconf(mock_async_zeroconf):
|
||||
def devolo_home_control_mock_async_zeroconf(mock_async_zeroconf: MagicMock) -> None:
|
||||
"""Auto mock zeroconf."""
|
||||
|
||||
Reference in New Issue
Block a user