diff --git a/agents/special/agent_unifi_controller b/agents/special/agent_unifi_controller index 5f909a9..8f2ec88 100755 --- a/agents/special/agent_unifi_controller +++ b/agents/special/agent_unifi_controller @@ -492,7 +492,7 @@ class unifi_controller(unifi_object): def __str__(self): _ret = ["<<>>"] for _k,_v in self.__dict__.items(): - if _k.startswith("_") or type(_v) not in (str,int,float): + if _k == "uptime" or _k.startswith("_") or type(_v) not in (str,int,float): continue _ret.append(f"{_k}|{_v}") @@ -503,6 +503,10 @@ class unifi_controller(unifi_object): _udm._piggy_back = False _ret.append(str(_udm)) + if "uptime" in self.__dict__: + _ret.append("<<>>") + _ret.append(f"{self.uptime}") + _ret.append("<<>>") _ret.append(f"{{\"unifi_device\":\"unifi-{self.type}\"}}") diff --git a/unifi_controller-0.88.1.mkp b/unifi_controller-0.88.1.mkp deleted file mode 100644 index 8b4e906..0000000 Binary files a/unifi_controller-0.88.1.mkp and /dev/null differ diff --git a/unifi_controller-0.88.2.mkp b/unifi_controller-0.88.2.mkp new file mode 100644 index 0000000..76eab87 Binary files /dev/null and b/unifi_controller-0.88.2.mkp differ