reset check if successful
This commit is contained in:
		
							parent
							
								
									2a260f6ee9
								
							
						
					
					
						commit
						61def3b37e
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -47,6 +47,9 @@ class UniFiAPI(object): | ||||||
|                 self.logger.error("Disregarding Job get_usg_stats for unifi-%s", self.server.id) |                 self.logger.error("Disregarding Job get_usg_stats for unifi-%s", self.server.id) | ||||||
|             return |             return | ||||||
| 
 | 
 | ||||||
|  |         if not self.get_retry: | ||||||
|  |             self.get_retry = True | ||||||
|  | 
 | ||||||
|         devices = {device['name']: device for device in get['data'] if device.get('name')} |         devices = {device['name']: device for device in get['data'] if device.get('name')} | ||||||
| 
 | 
 | ||||||
|         if devices.get(self.server.usg_name): |         if devices.get(self.server.usg_name): | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue