Cleanup get_local_ip in global conftest (#89826)
parent
f9919bb7cf
commit
9893b1cf4a
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue