def update_devices(self):
     detector = QgsGpsDetector('scan')
     self.deviceComboBox.clear()
     devices_list = []
     for port in detector.availablePorts():
         devices_list.append(port[0])
     self.deviceComboBox.addItems(devices_list)