mirror of
https://github.com/esphome/esphome.git
synced 2025-07-30 07:06:38 +00:00
cleanup
This commit is contained in:
parent
5f14579af8
commit
6d6bf82501
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user