mirror of
https://github.com/bashclub/check-unifi-controller.git
synced 2024-11-08 04:31:58 +01:00
Merge pull request #1 from ChristophGoth/patch-1
Update agent_unifi_controller
This commit is contained in:
commit
39475c6814
@ -556,7 +556,7 @@ class unifi_controller_api(object):
|
|||||||
|
|
||||||
def check_unifi_os(self):
|
def check_unifi_os(self):
|
||||||
_response = self.request("GET",url=self.url,allow_redirects=False)
|
_response = self.request("GET",url=self.url,allow_redirects=False)
|
||||||
self.is_unifios= _response.status_code == 200 and _response.headers.get("x-csrf-token")
|
self.is_unifios= _response.status_code == 200
|
||||||
|
|
||||||
def get_sysinfo(self):
|
def get_sysinfo(self):
|
||||||
return self.get_data("/stat/sysinfo")
|
return self.get_data("/stat/sysinfo")
|
||||||
|
Loading…
Reference in New Issue
Block a user