mirror of
https://github.com/esphome/esphome.git
synced 2025-01-19 04:20:56 +00:00
Minimum 1 for full_update_every to prevent IntegerDivideByZero. (#6150)
This commit is contained in:
parent
f2caf13d39
commit
23a9a704f3
@ -135,7 +135,7 @@ CONFIG_SCHEMA = cv.All(
|
|||||||
cv.Required(CONF_MODEL): cv.one_of(*MODELS, lower=True),
|
cv.Required(CONF_MODEL): cv.one_of(*MODELS, lower=True),
|
||||||
cv.Optional(CONF_RESET_PIN): pins.gpio_output_pin_schema,
|
cv.Optional(CONF_RESET_PIN): pins.gpio_output_pin_schema,
|
||||||
cv.Optional(CONF_BUSY_PIN): pins.gpio_input_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.Optional(CONF_RESET_DURATION): cv.All(
|
||||||
cv.positive_time_period_milliseconds,
|
cv.positive_time_period_milliseconds,
|
||||||
cv.Range(max=core.TimePeriod(milliseconds=500)),
|
cv.Range(max=core.TimePeriod(milliseconds=500)),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user