1
0
mirror of https://github.com/esphome/esphome.git synced 2025-06-18 22:35:40 +01:00

Dont dump legacy fields ()

This commit is contained in:
Jesse Hills
2021-09-06 08:36:55 +12:00
committed by GitHub
parent ff6bed54c6
commit 97eba1eecc
2 changed files with 2 additions and 41 deletions
esphome/components/api
script/api_protobuf

@ -183,6 +183,8 @@ class TypeInfo:
@property
def dump_content(self):
if self.name.startswith("legacy_"):
return None
o = f'out.append(" {self.name}: ");\n'
o += self.dump(f"this->{self.field_name}") + "\n"
o += f'out.append("\\n");\n'