mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Prevent 3rd party lib from opening sockets in smhi tests (#56335)
This commit is contained in:
parent
75c029c56b
commit
80a57f5118
@ -26,8 +26,12 @@ async def test_setup_entry(
|
||||
assert state
|
||||
|
||||
|
||||
async def test_remove_entry(hass: HomeAssistant) -> None:
|
||||
async def test_remove_entry(
|
||||
hass: HomeAssistant, aioclient_mock: AiohttpClientMocker, api_response: str
|
||||
) -> None:
|
||||
"""Test remove entry."""
|
||||
uri = APIURL_TEMPLATE.format(TEST_CONFIG["longitude"], TEST_CONFIG["latitude"])
|
||||
aioclient_mock.get(uri, text=api_response)
|
||||
entry = MockConfigEntry(domain=DOMAIN, data=TEST_CONFIG)
|
||||
entry.add_to_hass(hass)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user