From 2cb5e8d818486b0f3f70f0443bf7b02a04db3b00 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 20 Aug 2026 16:15:42 -0500 Subject: [PATCH] Warn on a failing addr2line on the PlatformIO path too --- esphome/components/esp8266/__init__.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/esphome/components/esp8266/__init__.py b/esphome/components/esp8266/__init__.py index 6dace98891..f4072262b2 100644 --- a/esphome/components/esp8266/__init__.py +++ b/esphome/components/esp8266/__init__.py @@ -649,12 +649,11 @@ def _decode_pc(config, addr): try: translation = subprocess.check_output(command, close_fds=False).decode().strip() except Exception: # noqa: BLE001 # pylint: disable=broad-except - if CORE.using_toolchain_arduino: - # A present-but-failing addr2line (stale ELF, bad install) must - # be visible, matching the missing-tool warning above - _warn_decode_problem( - "addr2line-failed", "Could not decode crash address %s", addr - ) + # A present-but-failing addr2line (stale ELF, bad install) must be + # visible on either toolchain, matching the missing-tool warning above + _warn_decode_problem( + "addr2line-failed", "Could not decode crash address %s", addr + ) _LOGGER.debug("Caught exception for command %s", command, exc_info=1) return