From 90dcb024298ac38c5a22d667ad7e173d10485c9d Mon Sep 17 00:00:00 2001 From: David Bonnes Date: Wed, 25 Sep 2024 20:52:03 +0100 Subject: [PATCH] Remove unnecessary patch from evohome tests (#126760) --- tests/components/evohome/conftest.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tests/components/evohome/conftest.py b/tests/components/evohome/conftest.py index 6d956e994548be..112e632b070035 100644 --- a/tests/components/evohome/conftest.py +++ b/tests/components/evohome/conftest.py @@ -100,14 +100,6 @@ async def mock_get( return mock_get -async def block_request( - self: Broker, method: HTTPMethod, url: str, **kwargs: Any -) -> None: - """Fail if the code attempts any actual I/O via aiohttp.""" - - pytest.fail(f"Unexpected request: {method} {url}") - - @pytest.fixture def config() -> dict[str, str]: "Return a default/minimal configuration." @@ -117,8 +109,6 @@ def config() -> dict[str, str]: } -@patch("evohomeasync.broker.Broker._make_request", block_request) -@patch("evohomeasync2.broker.Broker._client", block_request) async def setup_evohome( hass: HomeAssistant, test_config: dict[str, str],