The electrical conductivity for imperfect crystals at finite temperature