Remove unnecessary attributes

Especially the login credentials
This commit is contained in:
Sebastian Goscik
2022-02-19 21:45:03 +00:00
parent c7f35cb17e
commit 6a0f89ff49

View File

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