Improve OTA error message

This commit is contained in:
Otto Winter 2019-05-16 11:26:33 +02:00
parent 8c73558165
commit 1fa4a2d256
No known key found for this signature in database
GPG key ID: DB66C0BE6013F97E

View file

@ -130,7 +130,7 @@ def check_error(data, expect):
"choose the correct 'board' option (esp01_1m always works) and try again.") "choose the correct 'board' option (esp01_1m always works) and try again.")
if dat == RESPONSE_ERROR_ESP8266_NOT_ENOUGH_SPACE: if dat == RESPONSE_ERROR_ESP8266_NOT_ENOUGH_SPACE:
raise OTAError("Error: ESP does not have enough space to store OTA file. Please try " raise OTAError("Error: ESP does not have enough space to store OTA file. Please try "
"flashing a minimal firmware (see FAQ)") "flashing a minimal firmware (remove everything except ota)")
if dat == RESPONSE_ERROR_ESP32_NOT_ENOUGH_SPACE: if dat == RESPONSE_ERROR_ESP32_NOT_ENOUGH_SPACE:
raise OTAError("Error: The OTA partition on the ESP is too small. ESPHome needs to resize " raise OTAError("Error: The OTA partition on the ESP is too small. ESPHome needs to resize "
"this partition, please flash over USB.") "this partition, please flash over USB.")