diff --git a/unifi/controller.py b/unifi/controller.py index d8083a8..d09b68a 100644 --- a/unifi/controller.py +++ b/unifi/controller.py @@ -186,7 +186,7 @@ def restart_ap_name(self, name): raise APIError('%s is not a valid name' % str(name)) for ap in self.get_aps(): if ap.get('state', 0) == 1 and ap.get('name', None) == name: - self.reboot_ap(ap['mac']) + self.restart_ap(ap['mac']) def create_backup(self): """Ask controller to create a backup archive file, response contains the path to the backup file.