From b877a0ef8c4250e8f168dc3a6fea14442b127654 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 15 Oct 2023 13:22:12 -1000 Subject: [PATCH] Fix imports in host resolver test (#584) --- tests/test_client.py | 4 +--- tests/test_host_resolver.py | 5 +++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/test_client.py b/tests/test_client.py index ca54125..74c8c4b 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -1,7 +1,5 @@ -from sys import version - import pytest -from mock import AsyncMock, MagicMock, call, patch +from mock import AsyncMock, MagicMock, patch from aioesphomeapi.api_pb2 import ( AlarmControlPanelCommandRequest, diff --git a/tests/test_host_resolver.py b/tests/test_host_resolver.py index 6afcde5..5b2b3b9 100644 --- a/tests/test_host_resolver.py +++ b/tests/test_host_resolver.py @@ -1,10 +1,11 @@ import socket from ipaddress import ip_address -import asyncio + import pytest from mock import AsyncMock, MagicMock, patch from zeroconf import DNSCache -from zeroconf.asyncio import AsyncZeroconf, AsyncServiceInfo +from zeroconf.asyncio import AsyncServiceInfo, AsyncZeroconf + import aioesphomeapi.host_resolver as hr from aioesphomeapi.core import APIConnectionError