1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-23 18:29:20 +01:00

Upgrade pylint to 2.6.0 (#39363)

This commit is contained in:
Ville Skyttä
2020-08-29 08:59:24 +03:00
committed by GitHub
parent 67de1d3466
commit 1bf2c4d976
52 changed files with 77 additions and 86 deletions

View File

@@ -64,7 +64,7 @@ class DateTimeJSONEncoder(json.JSONEncoder):
Additionally add encoding for datetime objects as isoformat.
"""
def default(self, o): # pylint: disable=method-hidden
def default(self, o):
"""Implement encoding logic."""
if isinstance(o, datetime):
return o.isoformat()