mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 13:57:10 +00:00
Fix JSON encoder issue in recorder
This commit is contained in:
parent
3fa1963345
commit
586208b3ed
@ -92,7 +92,8 @@ class States(Base): # type: ignore
|
||||
else:
|
||||
dbstate.domain = state.domain
|
||||
dbstate.state = state.state
|
||||
dbstate.attributes = json.dumps(dict(state.attributes))
|
||||
dbstate.attributes = json.dumps(dict(state.attributes),
|
||||
cls=JSONEncoder)
|
||||
dbstate.last_changed = state.last_changed
|
||||
dbstate.last_updated = state.last_updated
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user