An electric switch left turned on with nothing plugged into it does not consume electricity because there is no closed circuit and no current flow.
If you leave an electric switch turned on when nothing is plugged into it, you will lose electricity.

FactVerify
Source: factverify.com
Key Evidence
Electrical theory states that without a closed circuit, no current flows and thus no power is consumed; multiple expert sources confirm that switched-on outlets with nothing plugged in use no electricity.
sustainability.stackexchange.comsustainability.stackexchange.comenergy - Do switchable sockets left "on" use electricity if there's nothing...
scienceabc.comscienceabc.comIf An Appliance is Plugged Into the Wall Socket, But Turned Off, Is It Using... Devices plugged in but turned off may consume standby power, but this does not apply to empty outlets controlled by a switch.
What the Evidence Shows
The claim that leaving an electric switch turned on when nothing is plugged into it causes a loss of electricity can be broken down into two key components: whether electricity is consumed when the switch is on but no device is connected, and whether this results in energy loss. Electrical theory and practical evidence show that if nothing is plugged into the outlet controlled by the switch, the circuit remains open, meaning no current flows and therefore no electrical energy is consumed.
This is because electrical power consumption requires a closed circuit with a load to draw current. Multiple sources confirm that switched-on outlets without any connected devices do not use electricity.sustainability.stackexchange.comsustainability.stackexchange.comenergy - Do switchable sockets left "on" use electricity if there's nothing...
scienceabc.comscienceabc.comIf An Appliance is Plugged Into the Wall Socket, But Turned Off, Is It Using...
However, if a device is plugged in but turned off, some devices may still draw a small amount of standby power, but this does not apply when nothing is plugged in at all.electronics.stackexchange.comelectronics.stackexchange.comFor electrical outlets that have on/off switches, is energy sent to the socket... Some smart switches or devices with indicator lights may consume a minuscule amount of power even when 'off,' but this is related to the device itself rather than the switch controlling an empty outlet.
Therefore, the claim that simply leaving a switch on with no device plugged in causes electricity loss is inaccurate. The reasoning behind the verdict is grounded in fundamental electrical principles and corroborated by expert explanations from electrical engineering communities and energy efficiency resources.