def remove_client(self, cloud):
    if (cloud in self.clients):
        print(('删除设备' + cloud))
        from app.service.device import Device
        Device.offline_alarm(self.clients[cloud])
        self.clients.pop(cloud)
def remove_client(self, cloud):
    if (cloud in self.clients):
        print(('删除设备' + cloud))
        from app.service.device import Device
        Device.offline_alarm(self.clients[cloud])
        self.clients.pop(cloud)