1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-06 13:22:19 +01:00
This commit is contained in:
J. Nick Koston
2025-07-21 13:03:21 -10:00
parent 6d6bf82501
commit 9a391df0f0

View File

@@ -946,6 +946,11 @@ class FixedArrayRepeatedType(TypeInfo):
o += "}\n"
return o
def dump(self, name: str) -> str:
# This is used when dumping the array itself (not its elements)
# Since dump_content handles the iteration, this is not used directly
return ""
def get_size_calculation(self, name: str, force: bool = False) -> str:
# For fixed arrays, we always encode all elements
# Check if this is a fixed-size type by seeing if it has a fixed byte count