From 40f74815f0c982eb4f342b3e1107358c0d9d5db3 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 25 Aug 2026 23:03:11 -0500 Subject: [PATCH] Widen the identity-unknown guard to UnicodeError in the generic prepare_pch --- esphome/build_helpers/pch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/build_helpers/pch.py b/esphome/build_helpers/pch.py index f9138a3a9b..4e74333f19 100644 --- a/esphome/build_helpers/pch.py +++ b/esphome/build_helpers/pch.py @@ -317,7 +317,7 @@ def prepare_pch( cmd_id, ), ) - except OSError as err: + except (OSError, UnicodeError) as err: # Identity unknown: a stale cache entry must never be served _LOGGER.warning( "Could not establish the pch identity; compiling without it: %s", err