Skip to content

Commit

Permalink
API client class v1.1.54
Browse files Browse the repository at this point in the history
- fixed list_alarms() method/function
  • Loading branch information
malle-pietje committed Jun 7, 2020
1 parent 329ad59 commit c77913f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Client
protected $is_loggedin = false;
protected $is_unifi_os = false;
protected $exec_retries = 0;
protected $class_version = '1.1.53';
protected $class_version = '1.1.54';
private $cookies = '';
private $request_type = 'GET';
private $request_types_allowed = ['GET', 'POST', 'PUT', 'DELETE'];
Expand Down Expand Up @@ -2937,9 +2937,7 @@ public function list_alarms()
return false;
}

$response = $this->exec_curl('/api/s/' . $this->site . '/list/alarm');

return $this->fetch_results($response);
return $this->fetch_results('/api/s/' . $this->site . '/list/alarm');
}

/**
Expand Down

0 comments on commit c77913f

Please sign in to comment.