Name the payload tables so they cannot clash with SDK symbols

This commit is contained in:
J. Nick Koston
2026-10-20 22:30:51 -10:00
parent 616d20fd9e
commit 0335e6d071
+2 -1
View File
@@ -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):