Make changes to USG to prevent canceling job. Should fix #107
This commit is contained in:
parent
b6a4867d4b
commit
d710d2c621
1 changed files with 2 additions and 2 deletions
|
@ -37,8 +37,8 @@ class UniFiAPI(object):
|
|||
get = connection_handler(self.session, req, self.server.verify_ssl)
|
||||
|
||||
if not get:
|
||||
self.logger.error("Canceling Job get_usg_stats for unifi-%s", self.server.id)
|
||||
return f"unifi-{self.server.id}-get_usg_stats"
|
||||
self.logger.error("Disregarding Job get_usg_stats for unifi-%s", self.server.id)
|
||||
return
|
||||
|
||||
devices = {device['name']: device for device in get['data']}
|
||||
if devices.get(self.server.usg_name):
|
||||
|
|
Loading…
Reference in a new issue