Merge pull request #1 from ChristophGoth/patch-1

Update agent_unifi_controller
This commit is contained in:
Robert Sander 2024-08-28 16:36:59 +02:00 committed by GitHub
commit 39475c6814
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")