mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 12:15:33 +01:00
Remove deep sleep run_cycles (#353)
* Remove deep sleep run_cycles * Fix test
This commit is contained in:
parent
e1f48b5028
commit
e0fe0a2835
@ -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_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_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)
|
||||
|
||||
|
||||
|
@ -137,7 +137,6 @@ power_supply:
|
||||
|
||||
deep_sleep:
|
||||
run_duration: 20s
|
||||
run_cycles: 500
|
||||
sleep_duration: 50s
|
||||
wakeup_pin: GPIO39
|
||||
wakeup_pin_mode: INVERT_WAKEUP
|
||||
|
Loading…
Reference in New Issue
Block a user