mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 06:58:11 +01:00
Minimum 1 for full_update_every to prevent IntegerDivideByZero. (#6150)
This commit is contained in:
parent
f2caf13d39
commit
23a9a704f3
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ CONFIG_SCHEMA = cv.All(
|
|||
cv.Required(CONF_MODEL): cv.one_of(*MODELS, lower=True),
|
||||
cv.Optional(CONF_RESET_PIN): pins.gpio_output_pin_schema,
|
||||
cv.Optional(CONF_BUSY_PIN): pins.gpio_input_pin_schema,
|
||||
cv.Optional(CONF_FULL_UPDATE_EVERY): cv.uint32_t,
|
||||
cv.Optional(CONF_FULL_UPDATE_EVERY): cv.int_range(min=1, max=4294967295),
|
||||
cv.Optional(CONF_RESET_DURATION): cv.All(
|
||||
cv.positive_time_period_milliseconds,
|
||||
cv.Range(max=core.TimePeriod(milliseconds=500)),
|
||||
|
|
Loading…
Reference in a new issue