mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02:00
Black
This commit is contained in:
@ -20,7 +20,7 @@ class JSONEncoder(json.JSONEncoder):
|
||||
return o.isoformat()
|
||||
if isinstance(o, set):
|
||||
return list(o)
|
||||
if hasattr(o, 'as_dict'):
|
||||
if hasattr(o, "as_dict"):
|
||||
return o.as_dict()
|
||||
|
||||
return json.JSONEncoder.default(self, o)
|
||||
|
Reference in New Issue
Block a user