Specular value cannot be specified

If the specular number is 0.5 by default, I want to set it to 0.05.

mat = bpy.data.materials.new(“Materials”)
mat.specular_intensity = 0.05

Does not work, does nothing.
What is wrong?
Or tell me how to lower the lookdev light source.
It’s too bright, it hurts eyes.