diff --git a/homeassistant/components/switch/rpi_gpio.py b/homeassistant/components/switch/rpi_gpio.py
index 5daa96397dc..23a98a3f7ba 100644
--- a/homeassistant/components/switch/rpi_gpio.py
+++ b/homeassistant/components/switch/rpi_gpio.py
@@ -39,6 +39,7 @@ class RPiGPIOSwitch(ToggleEntity):
         self._invert_logic = invert_logic
         self._state = False
         rpi_gpio.setup_output(self._port)
+        rpi_gpio.write_output(self._port, 1 if self._invert_logic else 0)
 
     @property
     def name(self):