This commit is contained in:
Otto Winter 2019-01-19 16:52:31 +01:00
parent e0fe0a2835
commit a00fe09c66
No known key found for this signature in database
GPG key ID: DB66C0BE6013F97E

View file

@ -68,8 +68,6 @@ def to_code(config):
add(deep_sleep.set_wakeup_pin(pin))
if CONF_WAKEUP_PIN_MODE in config:
add(deep_sleep.set_wakeup_pin_mode(WAKEUP_PIN_MODES[config[CONF_WAKEUP_PIN_MODE]]))
if CONF_RUN_CYCLES in config:
add(deep_sleep.set_run_cycles(config[CONF_RUN_CYCLES]))
if CONF_RUN_DURATION in config:
add(deep_sleep.set_run_duration(config[CONF_RUN_DURATION]))