mirror of
https://github.com/esphome/esphome.git
synced 2025-04-15 15:20:27 +01:00
Remove deep sleep run_cycles (#353)
* Remove deep sleep run_cycles * Fix test
This commit is contained in:
parent
ff419916ae
commit
ab7102a3dd
@ -49,8 +49,11 @@ CONFIG_SCHEMA = vol.Schema({
|
|||||||
vol.Required(CONF_PINS): cv.ensure_list(pins.shorthand_input_pin, validate_pin_number),
|
vol.Required(CONF_PINS): cv.ensure_list(pins.shorthand_input_pin, validate_pin_number),
|
||||||
vol.Required(CONF_MODE): cv.one_of(*EXT1_WAKEUP_MODES, upper=True),
|
vol.Required(CONF_MODE): cv.one_of(*EXT1_WAKEUP_MODES, upper=True),
|
||||||
})),
|
})),
|
||||||
vol.Optional(CONF_RUN_CYCLES): cv.positive_int,
|
|
||||||
vol.Optional(CONF_RUN_DURATION): cv.positive_time_period_milliseconds,
|
vol.Optional(CONF_RUN_DURATION): cv.positive_time_period_milliseconds,
|
||||||
|
|
||||||
|
vol.Optional(CONF_RUN_CYCLES): cv.invalid("The run_cycles option has been removed in 1.11.0 as "
|
||||||
|
"it was essentially the same as a run_duration of 0s."
|
||||||
|
"Please use run_duration now.")
|
||||||
}).extend(cv.COMPONENT_SCHEMA.schema)
|
}).extend(cv.COMPONENT_SCHEMA.schema)
|
||||||
|
|
||||||
|
|
||||||
|
@ -137,7 +137,6 @@ power_supply:
|
|||||||
|
|
||||||
deep_sleep:
|
deep_sleep:
|
||||||
run_duration: 20s
|
run_duration: 20s
|
||||||
run_cycles: 500
|
|
||||||
sleep_duration: 50s
|
sleep_duration: 50s
|
||||||
wakeup_pin: GPIO39
|
wakeup_pin: GPIO39
|
||||||
wakeup_pin_mode: INVERT_WAKEUP
|
wakeup_pin_mode: INVERT_WAKEUP
|
||||||
|
Loading…
x
Reference in New Issue
Block a user