mirror of
https://github.com/esphome/esphome.git
synced 2025-07-31 07:36:35 +00:00
cleanup
This commit is contained in:
parent
8ee06cdc8c
commit
5f14579af8
@ -596,6 +596,8 @@ class MessageType(TypeInfo):
|
|||||||
return self._get_simple_size_calculation(name, force, "add_message_object")
|
return self._get_simple_size_calculation(name, force, "add_message_object")
|
||||||
|
|
||||||
def get_estimated_size(self) -> int:
|
def get_estimated_size(self) -> int:
|
||||||
|
# For message types, we can't easily estimate the submessage size without
|
||||||
|
# access to the actual message definition. This is just a rough estimate.
|
||||||
return (
|
return (
|
||||||
self.calculate_field_id_size() + 16
|
self.calculate_field_id_size() + 16
|
||||||
) # field ID + 16 bytes estimated submessage
|
) # field ID + 16 bytes estimated submessage
|
||||||
|
Loading…
x
Reference in New Issue
Block a user