“It will work fine until they try to sell the house. If the buyer hires an inspector, he will not pass that.”
Plugged into light (switched). Won’t work unless light in house is turned on.