Skip to content

Commit

Permalink
clean: code
Browse files Browse the repository at this point in the history
  • Loading branch information
m4dm4rtig4n committed Feb 29, 2024
1 parent 6459130 commit 3c43625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def set_usage_point_config(self, usage_point_id, key, value):
else:
value = str(value)
self.config["myelectricaldata"][usage_point_id][key] = value
with self.path_file.open("w", encoding="utf-8") as outfile:
with Path(self.path_file).open(mode="w", encoding="utf-8") as outfile:
yaml.dump(self.config, outfile, default_flow_style=False)
else:
return False
Expand Down

0 comments on commit 3c43625

Please sign in to comment.