Add type hint to mock_async_zeroconf in test fixtures (#119057)
This commit is contained in:
parent
5f309b69cf
commit
bfff3c0524
8 changed files with 19 additions and 13 deletions
|
@ -7,7 +7,7 @@ from asyncio import Event
|
|||
from collections.abc import Awaitable, Callable
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
from unittest.mock import AsyncMock, Mock, patch
|
||||
from unittest.mock import AsyncMock, MagicMock, Mock, patch
|
||||
|
||||
from aioesphomeapi import (
|
||||
APIClient,
|
||||
|
@ -47,7 +47,7 @@ def mock_bluetooth(enable_bluetooth: None) -> None:
|
|||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def esphome_mock_async_zeroconf(mock_async_zeroconf):
|
||||
def esphome_mock_async_zeroconf(mock_async_zeroconf: MagicMock) -> None:
|
||||
"""Auto mock zeroconf."""
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue