|  |  | @ -29,13 +29,9 @@ def chunks(l, n=128): | 
			
		
	
		
		
			
				
					
					|  |  |  | def build_fw_dict(fw_versions, filter_brand=None): |  |  |  | def build_fw_dict(fw_versions, filter_brand=None): | 
			
		
	
		
		
			
				
					
					|  |  |  |   fw_versions_dict = defaultdict(set) |  |  |  |   fw_versions_dict = defaultdict(set) | 
			
		
	
		
		
			
				
					
					|  |  |  |   for fw in fw_versions: |  |  |  |   for fw in fw_versions: | 
			
		
	
		
		
			
				
					
					|  |  |  |     if fw.logging: |  |  |  |     if (filter_brand is None or fw.brand == filter_brand) and not fw.logging: | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       continue |  |  |  |       sub_addr = fw.subAddress if fw.subAddress != 0 else None | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |     if filter_brand is not None and fw.brand != filter_brand: |  |  |  |       fw_versions_dict[(fw.address, sub_addr)].add(fw.fwVersion) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       continue |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     addr = fw.address |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     sub_addr = fw.subAddress if fw.subAddress != 0 else None |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     fw_versions_dict[(addr, sub_addr)].add(fw.fwVersion) |  |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |   return dict(fw_versions_dict) |  |  |  |   return dict(fw_versions_dict) | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | 
 |