def METHOD_NAME(self, serial_port):
    if serial_port not in self._usb_output_devices:
        return
    changed_device = self._usb_output_devices[serial_port]
    if changed_device.connectionState == ConnectionState.Connected:
        self.getOutputDeviceManager().addOutputDevice(changed_device)
    else:
        self.getOutputDeviceManager().removeOutputDevice(serial_port)