mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 13:34:54 +01:00
Fix encoding bug (#2242)
This commit is contained in:
parent
97eba1eecc
commit
2a653642f5
1 changed files with 1 additions and 3 deletions
|
@ -608,9 +608,7 @@ class EditRequestHandler(BaseHandler):
|
|||
@bind_config
|
||||
def post(self, configuration=None):
|
||||
# pylint: disable=no-value-for-parameter
|
||||
with open(
|
||||
file=settings.rel_path(configuration), mode="wb", encoding="utf-8"
|
||||
) as f:
|
||||
with open(file=settings.rel_path(configuration), mode="wb") as f:
|
||||
f.write(self.request.body)
|
||||
self.set_status(200)
|
||||
|
||||
|
|
Loading…
Reference in a new issue