From 9893b1cf4ae6b878791cf0cbeedf64120f5794cd Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 16 Mar 2023 22:03:06 +0100 Subject: [PATCH] Cleanup get_local_ip in global conftest (#89826) --- tests/conftest.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index c4530bd5381e6..08ca75829c309 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -31,7 +31,7 @@ import requests_mock from syrupy.assertion import SnapshotAssertion -from homeassistant import core as ha, loader, runner, util +from homeassistant import core as ha, loader, runner from homeassistant.auth.const import GROUP_ID_ADMIN, GROUP_ID_READ_ONLY from homeassistant.auth.models import Credentials from homeassistant.auth.providers import homeassistant, legacy_api_password @@ -228,7 +228,6 @@ async def guard_func(*args: _P.args, **kwargs: _P.kwargs) -> _R: # Guard a few functions that would make network connections location.async_detect_location_info = check_real(location.async_detect_location_info) -util.get_local_ip = lambda: "127.0.0.1" @pytest.fixture(name="caplog")