mirror of
https://github.com/esphome/esphome.git
synced 2025-09-03 20:02:22 +01:00
Fix some lint errors in pylint 2.10.2 (#2226)
This commit is contained in:
@@ -481,5 +481,5 @@ GITIGNORE_CONTENT = """# Gitignore settings for ESPHome
|
||||
def write_gitignore():
|
||||
path = CORE.relative_config_path(".gitignore")
|
||||
if not os.path.isfile(path):
|
||||
with open(path, "w") as f:
|
||||
with open(file=path, mode="w", encoding="utf-8") as f:
|
||||
f.write(GITIGNORE_CONTENT)
|
||||
|
Reference in New Issue
Block a user