List the correct boards when building for ESP32 (#589)

* List the ESP32 boards for ESP32 builds.

* Sort the list of valid boards.
This commit is contained in:
Marc-Antoine Courteau 2019-05-31 16:06:01 -04:00 committed by Otto Winter
parent 72f656ffef
commit 1a4efa1b8c
No known key found for this signature in database
GPG key ID: DB66C0BE6013F97E

View file

@ -38,7 +38,7 @@ def validate_board(value):
if value not in board_pins:
raise cv.Invalid(u"Could not find board '{}'. Valid boards are {}".format(
value, u', '.join(pins.ESP8266_BOARD_PINS.keys())))
value, u', '.join(sorted(board_pins.keys()))))
return value