Skip to content

Commit

Permalink
Cleanup get_local_ip in global conftest (#89826)
Browse files Browse the repository at this point in the history
  • Loading branch information
epenet authored Mar 16, 2023
1 parent f9919bb commit 9893b1c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 9893b1c

Please sign in to comment.