Skip to content

Commit

Permalink
Remove unnecessary patch from evohome tests (#126760)
Browse files Browse the repository at this point in the history
  • Loading branch information
zxdavb authored Sep 25, 2024
1 parent 4f0211c commit 90dcb02
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions tests/components/evohome/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand All @@ -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],
Expand Down

0 comments on commit 90dcb02

Please sign in to comment.