From 0335e6d071da9630784a35d1a83e09cdcbe9df8a Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 20 Oct 2026 22:30:51 -1000 Subject: [PATCH] Name the payload tables so they cannot clash with SDK symbols --- esphome/automation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esphome/automation.py b/esphome/automation.py index 397f2558484..acf046a11bd 100644 --- a/esphome/automation.py +++ b/esphome/automation.py @@ -545,7 +545,8 @@ def apply_action_builder( continue c = f if isinstance(f, ApplyCall) else f.call() statements_spec.append((c.target, _default_std_string(c.members, flash_string))) - table_name = name.replace(".", "_") + # Named like the generated function, so it cannot clash with an SDK symbol + table_name = f"esphome__{name.replace('.', '_')}__bytes" _check_key_in_schema(name, schema, id_key) for spec in statements_spec: if isinstance(spec, ApplyBytes):