mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 04:35:11 +02:00
End JSON files updated by scaffold script with a newline (#67639)
This commit is contained in:
@@ -50,7 +50,7 @@ class Info:
|
||||
"""Update the integration manifest."""
|
||||
print(f"Updating {self.domain} manifest: {kwargs}")
|
||||
self.manifest_path.write_text(
|
||||
json.dumps({**self.manifest(), **kwargs}, indent=2)
|
||||
json.dumps({**self.manifest(), **kwargs}, indent=2 + "\n")
|
||||
)
|
||||
|
||||
@property
|
||||
@@ -67,4 +67,6 @@ class Info:
|
||||
def update_strings(self, **kwargs) -> None:
|
||||
"""Update the integration strings."""
|
||||
print(f"Updating {self.domain} strings: {list(kwargs)}")
|
||||
self.strings_path.write_text(json.dumps({**self.strings(), **kwargs}, indent=2))
|
||||
self.strings_path.write_text(
|
||||
json.dumps({**self.strings(), **kwargs}, indent=2) + "\n"
|
||||
)
|
||||
|
Reference in New Issue
Block a user