diff --git a/tests/components/pi_hole/test_config_flow.py b/tests/components/pi_hole/test_config_flow.py index 3b56305e0fc..326b01b9a7a 100644 --- a/tests/components/pi_hole/test_config_flow.py +++ b/tests/components/pi_hole/test_config_flow.py @@ -128,7 +128,6 @@ async def test_flow_reauth(hass: HomeAssistant) -> None: user_input={CONF_API_KEY: "newkey"}, ) - await hass.async_block_till_done() assert result["type"] is FlowResultType.ABORT assert result["reason"] == "reauth_successful" assert entry.data[CONF_API_KEY] == "newkey" diff --git a/tests/components/pi_hole/test_init.py b/tests/components/pi_hole/test_init.py index b5a24a5972b..72b48e3d572 100644 --- a/tests/components/pi_hole/test_init.py +++ b/tests/components/pi_hole/test_init.py @@ -199,8 +199,6 @@ async def test_disable_service_call(hass: HomeAssistant) -> None: blocking=True, ) - await hass.async_block_till_done() - mocked_hole.disable.assert_called_with(1) @@ -219,8 +217,6 @@ async def test_unload(hass: HomeAssistant) -> None: assert isinstance(entry.runtime_data, PiHoleData) assert await hass.config_entries.async_unload(entry.entry_id) - await hass.async_block_till_done() - assert entry.state is ConfigEntryState.NOT_LOADED