mirror of
https://github.com/Art-of-WiFi/UniFi-API-client.git
synced 2024-12-24 18:00:28 +01:00
API client class v1.1.54
- fixed list_alarms() method/function
This commit is contained in:
parent
329ad595c9
commit
c77913fded
@ -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'];
|
||||
@ -2937,9 +2937,7 @@ class Client
|
||||
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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user