Update agent_unifi_controller

Removed X-CSRF as https://github.com/bashclub/check-unifi-controller/issues/19
This commit is contained in:
Chris_ 2024-08-14 08:51:14 +02:00 committed by GitHub
parent 8863966ce7
commit c8204dce28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -556,7 +556,7 @@ class unifi_controller_api(object):
def check_unifi_os(self):
_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):
return self.get_data("/stat/sysinfo")