1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-07 22:02:22 +01:00
This commit is contained in:
J. Nick Koston
2025-07-29 07:15:12 -10:00
parent 9133554588
commit 2537c4437f

View File

@@ -388,7 +388,8 @@ class DoubleType(TypeInfo):
return o return o
def get_size_calculation(self, name: str, force: bool = False) -> str: def get_size_calculation(self, name: str, force: bool = False) -> str:
return self._get_fixed_size_calculation(name, "add_double") field_id_size = self.calculate_field_id_size()
return f"size.add_double({field_id_size}, {name});"
def get_fixed_size_bytes(self) -> int: def get_fixed_size_bytes(self) -> int:
return 8 return 8