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')
def slot_group_connected(self, group): log.debug('group %s connected' % group.name()) self.connected_groups.append(group)
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')