mirror of
https://github.com/esphome/esphome.git
synced 2025-06-18 22:35:40 +01:00
Dont dump legacy fields (#2241)
This commit is contained in:
@ -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'
|
||||
|
Reference in New Issue
Block a user