Skip to content

Commit

Permalink
Minimum 1 for full_update_every to prevent IntegerDivideByZero. (esph…
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenNL authored Jan 27, 2024
1 parent f2caf13 commit 23a9a70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esphome/components/waveshare_epaper/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def validate_full_update_every_only_types_ac(value):
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)),
Expand Down

0 comments on commit 23a9a70

Please sign in to comment.