mirror of
https://github.com/esphome/esphome.git
synced 2025-01-31 10:10:56 +00:00
Improve OTA error message
This commit is contained in:
parent
8c73558165
commit
1fa4a2d256
@ -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.")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user