1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-11 07:42:26 +01:00

missing ifdefs

This commit is contained in:
J. Nick Koston
2025-07-13 12:11:59 -10:00
parent d2569c0f1e
commit dc7996922b
2 changed files with 162 additions and 1 deletions

View File

@@ -1177,7 +1177,12 @@ def build_message_type(
wrap_with_ifdef(ti.decode_64bit_content, field_ifdef)
)
if ti.dump_content:
dump.append(ti.dump_content)
# Check for field_ifdef option for dump as well
field_ifdef = None
if field.options.HasExtension(pb.field_ifdef):
field_ifdef = field.options.Extensions[pb.field_ifdef]
dump.extend(wrap_with_ifdef(ti.dump_content, field_ifdef))
cpp = ""
if decode_varint: