mirror of
https://github.com/esphome/esphome.git
synced 2025-09-04 20:32:21 +01:00
preen
This commit is contained in:
@@ -1057,7 +1057,7 @@ def _generate_array_dump_content(
|
|||||||
"""
|
"""
|
||||||
o = f"for (const auto {'' if is_bool else '&'}it : {field_name}) {{\n"
|
o = f"for (const auto {'' if is_bool else '&'}it : {field_name}) {{\n"
|
||||||
# Check if underlying type can use dump_field
|
# Check if underlying type can use dump_field
|
||||||
if type(ti).can_use_dump_field():
|
if ti.can_use_dump_field():
|
||||||
# For types that have dump_field overloads, use them with extra indent
|
# For types that have dump_field overloads, use them with extra indent
|
||||||
o += f' dump_field(out, "{name}", {ti.dump_field_value("it")}, 4);\n'
|
o += f' dump_field(out, "{name}", {ti.dump_field_value("it")}, 4);\n'
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user