mirror of
https://github.com/esphome/esphome.git
synced 2025-09-03 03:42:20 +01:00
Bump pylint from 2.10.2 to 2.11.1 (#2334)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Otto winter <otto@otto-winter.com>
This commit is contained in:
@@ -94,7 +94,7 @@ class StorageJSON:
|
||||
}
|
||||
|
||||
def to_json(self):
|
||||
return json.dumps(self.as_dict(), indent=2) + "\n"
|
||||
return f"{json.dumps(self.as_dict(), indent=2)}\n"
|
||||
|
||||
def save(self, path):
|
||||
write_file_if_changed(path, self.to_json())
|
||||
@@ -214,7 +214,7 @@ class EsphomeStorageJSON:
|
||||
self.last_update_check_str = new.strftime("%Y-%m-%dT%H:%M:%S")
|
||||
|
||||
def to_json(self): # type: () -> dict
|
||||
return json.dumps(self.as_dict(), indent=2) + "\n"
|
||||
return f"{json.dumps(self.as_dict(), indent=2)}\n"
|
||||
|
||||
def save(self, path): # type: (str) -> None
|
||||
write_file_if_changed(path, self.to_json())
|
||||
|
Reference in New Issue
Block a user