mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Move mock_async_zeroconf to decorator in homekit tests (#119060)
This commit is contained in:
@@ -5,7 +5,7 @@ from collections.abc import Generator
|
||||
from contextlib import suppress
|
||||
import os
|
||||
from typing import Any
|
||||
from unittest.mock import patch
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
import pytest
|
||||
|
||||
@@ -88,7 +88,7 @@ def mock_hap(
|
||||
hass: HomeAssistant,
|
||||
event_loop: AbstractEventLoop,
|
||||
iid_storage: AccessoryIIDStorage,
|
||||
mock_zeroconf: None,
|
||||
mock_zeroconf: MagicMock,
|
||||
) -> Generator[HomeDriver, Any, None]:
|
||||
"""Return a custom AccessoryDriver instance for HomeKit accessory init."""
|
||||
with (
|
||||
|
||||
Reference in New Issue
Block a user