1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-01 19:02:18 +01:00

Revert "Dont dump legacy fields (#2241)" (#2259)

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

View File

@@ -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'