From d5b5a2ae2e4bf5f0bc1dd7b5c70665d67f004dfb Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Fri, 15 Oct 2021 19:47:23 +0000 Subject: [PATCH] Test pyunifiprotect integration --- main.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 main.py diff --git a/main.py b/main.py new file mode 100644 index 0000000..c837328 --- /dev/null +++ b/main.py @@ -0,0 +1,14 @@ +import settings + +from pyunifiprotect import cli + +if __name__ == '__main__': + protect = cli._get_server( + settings.UFP_USERNAME, + settings.UFP_PASSWORD, + settings.UFP_ADDRESS, + settings.UFP_PORT, + settings.UFP_SSL_VERIFY + ) + + cli._listen_to_ws(protect)