mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Use hass_client_no_auth test fixture in integrations a-g (#55581)
This commit is contained in:
@@ -118,7 +118,7 @@ def mock_dev_track(mock_device_tracker_conf):
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
async def geofency_client(loop, hass, aiohttp_client):
|
||||
async def geofency_client(loop, hass, hass_client_no_auth):
|
||||
"""Geofency mock client (unauthenticated)."""
|
||||
assert await async_setup_component(hass, "persistent_notification", {})
|
||||
|
||||
@@ -128,7 +128,7 @@ async def geofency_client(loop, hass, aiohttp_client):
|
||||
await hass.async_block_till_done()
|
||||
|
||||
with patch("homeassistant.components.device_tracker.legacy.update_config"):
|
||||
return await aiohttp_client(hass.http.app)
|
||||
return await hass_client_no_auth()
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
|
||||
Reference in New Issue
Block a user