Skip to content

Commit

Permalink
Merge pull request #187 from custom-components/revert-186-master
Browse files Browse the repository at this point in the history
Revert "Fix "date is not serializable" error."
  • Loading branch information
isabellaalstrom authored Feb 16, 2022
2 parents e7083df + 946db07 commit b9172ce
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

@@ -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):

0 comments on commit b9172ce

Please sign in to comment.