Fix JSON encoder issue in recorder
This commit is contained in:
parent
3fa1963345
commit
586208b3ed
1 changed files with 2 additions and 1 deletions
|
@ -92,7 +92,8 @@ class States(Base): # type: ignore
|
||||||
else:
|
else:
|
||||||
dbstate.domain = state.domain
|
dbstate.domain = state.domain
|
||||||
dbstate.state = state.state
|
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_changed = state.last_changed
|
||||||
dbstate.last_updated = state.last_updated
|
dbstate.last_updated = state.last_updated
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue