Example: laptop or cell phone charger.
It is not connected to the device, but only in the socket.
Or should I better pull it out of the socket?
This can be the case with older devices, but modern devices do not consume electricity if only the cable is plugged in, unless they have charging LEDs that light up when they are plugged in
There's a power supply unit on the plug and it also consumes electricity when no device is connected, but only very little.
Depending on the type and size of the (plug) power supply between approx. 1mA-10mA (standby) current. So at: 10mA * 24h * 365 days = 87.6Ah / year (if it were plugged in permanently)
This results in: 230V * 87.6Ah = 20148Wh, or approx. 20kWh per year.
There's also the risk of a defect (fire) because the parts are already warm.
Every current-carrying conductor "consumes" electrical energy and releases it to the environment in the form of heat. The "power consumption is so low, however, that in most cases it can't be measured once. Fire risk is only a very low risk, however I recommend that you only use original manufacturer accessories
Some people refer to a cell phone charger / power adapter as a plug or charging cable. Such a charger only has a docked plug. Therefore, better referred to as a plug-in power supply or plug-in charger. These parts also consume minimal electricity when they are not connected to the cell phone / laptop.
In contrast, a power strip if it is in the socket and nothing is plugged into the strip is zero.
Oh yeah?