Skip to content

Commit

Permalink
Revert "Fix "date is not serializable" error."
Browse files Browse the repository at this point in the history
  • Loading branch information
isabellaalstrom authored Feb 16, 2022
1 parent e7083df commit 946db07
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions custom_components/grocy/json_encode.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import json
from datetime import datetime
from datetime import date
from pathlib import Path
from typing import Any

Expand All @@ -18,8 +17,6 @@ def default(self, o: Any) -> Any:
return o.barcode
if isinstance(o, datetime):
return o.isoformat()
if isinstance(o, date):
return o.isoformat()
if isinstance(o, set):
return list(o)
if isinstance(o, Path):
Expand Down

0 comments on commit 946db07

Please sign in to comment.