mirror of
https://github.com/esphome/esphome.git
synced 2025-07-30 15:16:37 +00:00
cleanup
This commit is contained in:
parent
9133554588
commit
2537c4437f
@ -388,7 +388,8 @@ class DoubleType(TypeInfo):
|
||||
return o
|
||||
|
||||
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:
|
||||
return 8
|
||||
|
Loading…
x
Reference in New Issue
Block a user