Merge branch 'esp8266-native-library-backend' into esp8266-native-build-spec

This commit is contained in:
J. Nick Koston
2026-08-21 12:57:45 -05:00
2 changed files with 9 additions and 3 deletions
+6 -1
View File
@@ -138,7 +138,12 @@ def _format_framework_arduino_version(ver: cv.Version) -> str:
# version bump cannot drift between the two paths.
from esphome.arduino8266.framework import framework_package_version
return f"~{framework_package_version(ver)}"
try:
return f"~{framework_package_version(ver)}"
except EsphomeError as err:
# Anchor the 4.x rejection to the framework version line instead of
# aborting with a bare traceback-level error
raise cv.Invalid(str(err)) from err
# NOTE: Keep this in mind when updating the recommended version: