mirror of
				https://github.com/zyphlar/LanternPowerMonitor.git
				synced 2024-03-08 14:07:47 +00:00 
			
		
		
		
	Don't remove breakers if a hub port hasn't been selected. This is a valid case if someone doesn't have hubs configured yet.
This commit is contained in:
		
							parent
							
								
									046c5e978b
								
							
						
					
					
						commit
						90002ab4d4
					
				@ -174,7 +174,7 @@ public class BreakerGroup {
 | 
			
		||||
		if (subGroups != null)
 | 
			
		||||
			subGroups.removeIf(_g->!_g.removeInvalidGroups(_validPanels));
 | 
			
		||||
		if (breakers != null)
 | 
			
		||||
			breakers.removeIf(_b->(_b.getType() == null) || (_b.getType() == BreakerType.EMPTY) || (_b.isTandemBreaker() && (_b.getPort() < 1)) || !_validPanels.contains(_b.getPanel()));
 | 
			
		||||
			breakers.removeIf(_b->(_b.getType() == null) || (_b.getType() == BreakerType.EMPTY) || !_validPanels.contains(_b.getPanel()));
 | 
			
		||||
		return CollectionUtils.isNotEmpty(subGroups) || CollectionUtils.isNotEmpty(breakers);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user