mirror of
https://github.com/esphome/esphome.git
synced 2025-09-06 05:12:21 +01:00
cleanup
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user