On occasion, on either hot or cold start, I will get “no” oil light.
I sometimes got no oil light on a cold start but would work after a hot start. I checked the switch electric connection & tapped with rubber mallet & was prepared to remove it but no need its fixed.