1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-03 20:02:22 +01:00
This commit is contained in:
J. Nick Koston
2025-08-11 00:42:42 -05:00
parent 9d29031d81
commit 3d821f1223

View File

@@ -1267,7 +1267,7 @@ class FixedArrayWithLengthRepeatedType(FixedArrayRepeatedType):
# Dump only the active elements
o = f"for (uint16_t i = 0; i < this->{self.field_name}_len; i++) {{\n"
# Check if underlying type can use dump_field
if type(self._ti).can_use_dump_field():
if self._ti.can_use_dump_field():
o += f' dump_field(out, "{self.name}", {self._ti.dump_field_value(f"this->{self.field_name}[i]")}, 4);\n'
else:
o += f' out.append(" {self.name}: ");\n'