1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-10 07:12:21 +01:00

remove unneeded cast

This commit is contained in:
J. Nick Koston
2025-07-17 13:34:00 -10:00
parent f5c6e03404
commit 732370effc
2 changed files with 2 additions and 2 deletions

View File

@@ -657,7 +657,7 @@ class FixedArrayBytesType(TypeInfo):
return f"buffer.encode_bytes({self.number}, this->{self.field_name}, this->{self.field_name}_len);"
def dump(self, name: str) -> str:
o = f"out.append(format_hex_pretty(reinterpret_cast<const char*>({name}), {name}_len));"
o = f"out.append(format_hex_pretty({name}, {name}_len));"
return o
def get_size_calculation(self, name: str, force: bool = False) -> str: