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

Revert "Dont dump legacy fields ()" ()

This reverts commit 97eba1eecc.
This commit is contained in:
Jesse Hills
2021-09-09 09:29:08 +12:00
committed by GitHub
parent e5051eefbc
commit cc52f37933
2 changed files with 41 additions and 2 deletions
esphome/components/api
script/api_protobuf

@ -183,8 +183,6 @@ 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'