Fix JSON encoder issue in recorder
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…
Reference in New Issue