From c77913fded208547591f4605c95b45cf2db06b96 Mon Sep 17 00:00:00 2001 From: malle-pietje Date: Sun, 7 Jun 2020 14:23:44 +0200 Subject: [PATCH] API client class v1.1.54 - fixed list_alarms() method/function --- src/Client.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Client.php b/src/Client.php index a2d668a..5639d65 100755 --- a/src/Client.php +++ b/src/Client.php @@ -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'); } /**