From fe798dff817794a1012a6bab1db69828dc6696b0 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Sat, 13 Dec 2025 12:03:43 +0900 Subject: [PATCH] Update esphome/writer.py Co-authored-by: J. Nick Koston --- esphome/writer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/writer.py b/esphome/writer.py index 798f921fd2..96dcbf3860 100644 --- a/esphome/writer.py +++ b/esphome/writer.py @@ -294,7 +294,7 @@ def _encode_string_symbols( text: str, prefix: str, bits: int, bit_suffix: str, endian: str, endian_suffix: str ) -> list[str]: """Encode a string as linker symbols for given word size and endianness.""" - symbols = [] + symbols: list[str] = [] # Pad to word boundary with NUL (build time strings need trailing NUL) padded = text if prefix == "CONFIG_HASH_STR" else text + "\0" while len(padded) % bits != 0: