Improve string formatting (#33643)
This commit is contained in:
1 parent
71a47fc80c
commit
ed71683488
10 files changed
+76
-76
No files matched your search
@@ -76,4 +76,4 @@ def generate(integrations: Dict[str, Integration], config: Config):
|
||||
"""Generate CODEOWNERS."""
|
||||
codeowners_path = config.root / "CODEOWNERS"
|
||||
with open(str(codeowners_path), "w") as fp:
|
||||
fp.write(config.cache["codeowners"] + "\n")
|
||||
fp.write(f"{config.cache['codeowners']}\n")
|
||||
@@ -83,4 +83,4 @@ def generate(integrations: Dict[str, Integration], config: Config):
|
||||
"""Generate config flow file."""
|
||||
config_flow_path = config.root / "homeassistant/generated/config_flows.py"
|
||||
with open(str(config_flow_path), "w") as fp:
|
||||
fp.write(config.cache["config_flow"] + "\n")
|
||||
fp.write(f"{config.cache['config_flow']}\n")
|
||||
@@ -79,4 +79,4 @@ def generate(integrations: Dict[str, Integration], config: Config):
|
||||
"""Generate ssdp file."""
|
||||
ssdp_path = config.root / "homeassistant/generated/ssdp.py"
|
||||
with open(str(ssdp_path), "w") as fp:
|
||||
fp.write(config.cache["ssdp"] + "\n")
|
||||
fp.write(f"{config.cache['ssdp']}\n")
|
||||
@@ -135,4 +135,4 @@ def generate(integrations: Dict[str, Integration], config: Config):
|
||||
"""Generate zeroconf file."""
|
||||
zeroconf_path = config.root / "homeassistant/generated/zeroconf.py"
|
||||
with open(str(zeroconf_path), "w") as fp:
|
||||
fp.write(config.cache["zeroconf"] + "\n")
|
||||
fp.write(f"{config.cache['zeroconf']}\n")
|
||||
Reference in new issue
Block a user