mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 15:38:11 +01:00
Check for min_version earlier in validation (#7797)
This commit is contained in:
parent
489d0d20d2
commit
ea424b0699
1 changed files with 3 additions and 0 deletions
|
@ -184,6 +184,9 @@ PRELOAD_CONFIG_SCHEMA = cv.Schema(
|
||||||
cv.Optional(CONF_ESP8266_RESTORE_FROM_FLASH): cv.valid,
|
cv.Optional(CONF_ESP8266_RESTORE_FROM_FLASH): cv.valid,
|
||||||
cv.Optional(CONF_BOARD_FLASH_MODE): cv.valid,
|
cv.Optional(CONF_BOARD_FLASH_MODE): cv.valid,
|
||||||
cv.Optional(CONF_ARDUINO_VERSION): cv.valid,
|
cv.Optional(CONF_ARDUINO_VERSION): cv.valid,
|
||||||
|
cv.Optional(CONF_MIN_VERSION, default=ESPHOME_VERSION): cv.All(
|
||||||
|
cv.version_number, cv.validate_esphome_version
|
||||||
|
),
|
||||||
},
|
},
|
||||||
extra=cv.ALLOW_EXTRA,
|
extra=cv.ALLOW_EXTRA,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue