fixed key to short poll time

This commit is contained in:
2025-12-19 22:12:26 +01:00
parent 8d1f7140a4
commit a360090f16

View File

@@ -63,7 +63,7 @@ def main() -> int:
obj=(data, {"upsname":tag}) obj=(data, {"upsname":tag})
)) ))
sleep(T_LONG if data.get("STATUS", "ONLINE") == "ONLINE" else T_SHORT) sleep(T_LONG if data.get("status", "ONLINE") == "ONLINE" else T_SHORT)
i += 1 i += 1
except KeyboardInterrupt: except KeyboardInterrupt:
LOGGER.warning("Stopping...") LOGGER.warning("Stopping...")