The presence of inhomogeneities modifies the cosmic distances through the gravitational lensing effect, and, indirectly, must affect the main cosmological tests. Assuming that the dark energy is a smooth component, the simplest way to account for the influence of clustering is to suppose that the average evolution of the expanding Universe is governed by the total matter-energy density whereas the focusing of light is only affected by a fraction of the total matter density quantified by the α DyerRoeder parameter. By using two different samples of SNe type Ia data, the Ωm and α parameters are constrained by applying the Zeldovich-Kantowski-Dyer-Roeder (ZKDR) luminosity distance redshift relation for a flat (ΛCDM) model. A χ 2 -analysis using the 115 SNe Ia data of Astier et al. sample (2006) constrains the density parameter to be Ωm = 0.26 +0.17 −0.07 (2σ) while the α parameter is weakly limited (all the values ∈ [0, 1] are allowed even at 1σ). However, a similar analysis based the 182 SNe Ia data of Riess et al. (2007) constrains the pair of parameters to be Ωm = 0.33 +0.09 −0.07 and α ≥ 0.42 (2σ). Basically, this occurs because the Riess et al. sample extends to appreciably higher redshifts. As a general result, even considering the existence of inhomogeneities as described by the smoothness α parameter, the Einstein-de Sitter model is ruled out by the two samples with a high degree of statistical confidence (11.5σ and 9.9σ, respectively). The inhomogeneous Hubble-Sandage diagram discussed here highlight the necessity of the dark energy, and a transition deceleration/accelerating phase at z ∼ 0.5 is also required.