mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +00:00
Remove usless comments
This commit is contained in:
parent
d6c7bf5ac8
commit
e6b4dba330
@ -48,11 +48,9 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||||||
add_devices(switches)
|
add_devices(switches)
|
||||||
|
|
||||||
def cleanup_gpio(event):
|
def cleanup_gpio(event):
|
||||||
""" Stop the Arduino service. """
|
|
||||||
GPIO.cleanup()
|
GPIO.cleanup()
|
||||||
|
|
||||||
def prepare_gpio(event):
|
def prepare_gpio(event):
|
||||||
""" Start the Arduino service. """
|
|
||||||
hass.bus.listen_once(EVENT_HOMEASSISTANT_STOP, cleanup_gpio)
|
hass.bus.listen_once(EVENT_HOMEASSISTANT_STOP, cleanup_gpio)
|
||||||
|
|
||||||
hass.bus.listen_once(EVENT_HOMEASSISTANT_START, prepare_gpio)
|
hass.bus.listen_once(EVENT_HOMEASSISTANT_START, prepare_gpio)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user