def set_state(self, state: entity_component.ComponentState) -> None:
    """Sets the component state from JSON data."""
    with self._lock:
      self._current_plan = state['current_plan']
Sets the component state from JSON data.
concordia/components/agent/deprecated/plan.py