mirror of
https://github.com/esphome/esphome.git
synced 2026-10-07 19:44:08 +00:00
Address esphbot review: emitting min/max means named scalar schemas now carry bounds (e.g. core.uint8_t is 0..255), and shrink()'s spread copied those over a tighter bound the field defined itself. cv.All(cv.uint8_t, cv.Range(min=1, max=6)) dumped 0..255 instead of 1..6, and All(uint32_t, Range(min=1)) lost its min. The spread now reconciles the two to the intersection (larger min, smaller max); non-numeric bounds keep the field's own value.