Function updateAutomationConnection