예제 #1
0
 def slot_group_disconnected(self, group):
     try:
         self.connected_groups.remove(group)
         log.info('group %s disconnected' % group.name())
     except:
         log.warning(
             f'internal error while group {group.name()} disconnecting')
     if not self.connected_groups:
         log.info('all groups disconnected, no connected devices left')
         self.emit('allgroupsdisconnected')
예제 #2
0
 def slot_group_connected(self, group):
     log.debug('group %s connected' % group.name())
     self.connected_groups.append(group)
예제 #3
0
 def slot_disconnected(self, group):
     self.connected_groups.remove(group)
     log.info('group %s disconnected' % group.name())
     if not self.connected_groups:
         log.info('all groups disconnected, no connected devices left')
         self.emit('allgroupsdisconnected')