1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-06 05:12:21 +01:00
This commit is contained in:
J. Nick Koston
2025-07-21 13:02:46 -10:00
parent 5f14579af8
commit 6d6bf82501

View File

@@ -927,11 +927,6 @@ class FixedArrayRepeatedType(TypeInfo):
# No decode methods needed - fixed arrays don't support decoding
# The base class TypeInfo already returns None for all decode properties
@property
def _ti_is_bool(self) -> bool:
# std::array doesn't have the same specialization issues as std::vector for bool
return False
@property
def encode_content(self) -> str:
o = f"for (const auto &it : this->{self.field_name}) {{\n"
@@ -951,9 +946,6 @@ class FixedArrayRepeatedType(TypeInfo):
o += "}\n"
return o
def dump(self, _: str):
pass
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