mirror of
https://github.com/ep1cman/unifi-protect-backup.git
synced 2025-12-05 23:53:30 +00:00
Remove unnecessary attributes
Especially the login credentials
This commit is contained in:
@@ -134,20 +134,15 @@ class UnifiProtectBackup:
|
|||||||
def __init__(self, address, port, username, password, verify_ssl, rclone_destination, retention, verbose):
|
def __init__(self, address, port, username, password, verify_ssl, rclone_destination, retention, verbose):
|
||||||
setup_logging(verbose)
|
setup_logging(verbose)
|
||||||
|
|
||||||
self.address = address
|
|
||||||
self.port = port
|
|
||||||
self.username = username
|
|
||||||
self.password = password
|
|
||||||
self.verify_ssl = verify_ssl
|
|
||||||
self.rclone_destination = rclone_destination
|
self.rclone_destination = rclone_destination
|
||||||
self.retention = retention
|
self.retention = retention
|
||||||
|
|
||||||
self._protect = ProtectApiClient(
|
self._protect = ProtectApiClient(
|
||||||
self.address,
|
address,
|
||||||
self.port,
|
port,
|
||||||
self.username,
|
username,
|
||||||
self.password,
|
password,
|
||||||
verify_ssl=self.verify_ssl,
|
verify_ssl=verify_ssl,
|
||||||
subscribed_models={ModelType.EVENT},
|
subscribed_models={ModelType.EVENT},
|
||||||
)
|
)
|
||||||
self._download_queue = asyncio.Queue()
|
self._download_queue = asyncio.Queue()
|
||||||
|
|||||||
Reference in New Issue
Block a user