Fixed datetime not serualizable

This commit is contained in:
Maximilian Giller 2024-02-15 21:47:28 +01:00
parent e6c15732ce
commit cbf2fa18a2

View file

@ -3,7 +3,7 @@ import logging
import json import json
def _debug_log_change(countChange: int, directionState: dict) -> None: 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};") logging.debug(f"CHANGE;Count Change;{str(countChange)};Direction State;{json_state};")
def _debug_log_trigger(triggerState: dict) -> None: def _debug_log_trigger(triggerState: dict) -> None: