mirror of
https://github.com/home-assistant/core.git
synced 2025-07-07 13:27:09 +00:00
Fix aiodns DeprecationWarning in tests (#135921)
This commit is contained in:
parent
fe8a93d62f
commit
24c50e0988
@ -33,6 +33,7 @@ import bcrypt
|
||||
import freezegun
|
||||
import multidict
|
||||
import pytest
|
||||
import pytest_asyncio
|
||||
import pytest_socket
|
||||
import requests_mock
|
||||
import respx
|
||||
@ -1233,8 +1234,8 @@ def disable_translations_once(
|
||||
translations_once.start()
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True, scope="session")
|
||||
def mock_zeroconf_resolver() -> Generator[_patch]:
|
||||
@pytest_asyncio.fixture(autouse=True, scope="session", loop_scope="session")
|
||||
async def mock_zeroconf_resolver() -> AsyncGenerator[_patch]:
|
||||
"""Mock out the zeroconf resolver."""
|
||||
patcher = patch(
|
||||
"homeassistant.helpers.aiohttp_client._async_make_resolver",
|
||||
|
Loading…
x
Reference in New Issue
Block a user