1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Improve string formatting (#33643)

This commit is contained in:
springstan
2020-04-04 20:17:11 +02:00
committed by GitHub
parent 71a47fc80c
commit ed71683488
10 changed files with 76 additions and 76 deletions

View File

@@ -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")