Test pyunifiprotect integration

This commit is contained in:
Tanner Collin 2021-10-15 19:47:23 +00:00
parent 749e923d34
commit d5b5a2ae2e

14
main.py Normal file
View File

@ -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)