diff --git a/homeassistant/components/switch/rpi_gpio.py b/homeassistant/components/switch/rpi_gpio.py index 2096d13b55a..e78c5373b13 100644 --- a/homeassistant/components/switch/rpi_gpio.py +++ b/homeassistant/components/switch/rpi_gpio.py @@ -48,11 +48,9 @@ def setup_platform(hass, config, add_devices, discovery_info=None): add_devices(switches) def cleanup_gpio(event): - """ Stop the Arduino service. """ GPIO.cleanup() def prepare_gpio(event): - """ Start the Arduino service. """ hass.bus.listen_once(EVENT_HOMEASSISTANT_STOP, cleanup_gpio) hass.bus.listen_once(EVENT_HOMEASSISTANT_START, prepare_gpio)