Fixed datetime not serualizable
This commit is contained in:
parent
e6c15732ce
commit
cbf2fa18a2
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ import logging
|
|||
import json
|
||||
|
||||
def _debug_log_change(countChange: int, directionState: dict) -> None:
|
||||
json_state = json.dumps(directionState)
|
||||
json_state = json.dumps(directionState, default=str)
|
||||
logging.debug(f"CHANGE;Count Change;{str(countChange)};Direction State;{json_state};")
|
||||
|
||||
def _debug_log_trigger(triggerState: dict) -> None:
|
||||
|
|
Loading…
Reference in a new issue