Cleanup get_local_ip in global conftest (#89826)

pull/89886/head
epenet 2023-03-16 22:03:06 +01:00 committed by GitHub
parent f9919bb7cf
commit 9893b1cf4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -31,7 +31,7 @@ import pytest_socket
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 @@ def check_real(func: Callable[_P, Coroutine[Any, Any, _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")