mirror of
https://github.com/esphome/esphome.git
synced 2025-07-31 07:36:35 +00:00
cleanup
This commit is contained in:
parent
f034069b5e
commit
b3abebfb37
@ -970,11 +970,7 @@ class FixedArrayRepeatedType(TypeInfo):
|
|||||||
|
|
||||||
def get_estimated_size(self) -> int:
|
def get_estimated_size(self) -> int:
|
||||||
# For fixed arrays, estimate underlying type size * array size
|
# For fixed arrays, estimate underlying type size * array size
|
||||||
underlying_size = (
|
underlying_size = self._ti.get_estimated_size()
|
||||||
self._ti.get_estimated_size()
|
|
||||||
if hasattr(self._ti, "get_estimated_size")
|
|
||||||
else 8
|
|
||||||
)
|
|
||||||
return underlying_size * self.array_size
|
return underlying_size * self.array_size
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user