mirror of
https://github.com/esphome/esphome.git
synced 2026-09-11 23:37:34 +00:00
[api] Trim the encode helper comments
This commit is contained in:
@@ -325,10 +325,7 @@ class TypeInfo(ABC):
|
||||
)
|
||||
|
||||
def _encode_fixed32_with_precomputed_tag(self, value_expr: str) -> str | None:
|
||||
"""Emit a fixed32 field through the shared tag+value writer when the tag is one byte.
|
||||
|
||||
Returns None for multi-byte tags, which go through the generic helper.
|
||||
"""
|
||||
"""Single-byte tag fixed32 write, or None for multi-byte tags."""
|
||||
tag = self.calculate_tag()
|
||||
if tag >= 128:
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user