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

Dont dump legacy fields (#2241)

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

View File

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