MCPcopy Index your code

hub / github.com/LouisBrunner/ha-proton-drive / functions

Functions48 in github.com/LouisBrunner/ha-proton-drive

↓ 8 callersMethod__call_api
(cls, *, hass: HomeAssistant, call: Callable[[], Any])
custom_components/proton_drive/api.py:206
↓ 3 callersMethod__create_root_folder_if_needed
Create the Home Assistant folder if it doesn't exist.
custom_components/proton_drive/api.py:133
↓ 3 callersFunctionserialize_credentials_to_data
Create a dictionary from Credentials object.
custom_components/proton_drive/helpers.py:26
↓ 2 callersMethod__async_step_after_auth
(self)
custom_components/proton_drive/config_flow.py:215
↓ 2 callersMethod__authenticate
Validate credentials.
custom_components/proton_drive/config_flow.py:295
↓ 2 callersMethod__finish
(self)
custom_components/proton_drive/config_flow.py:303
↓ 2 callersMethod__handle_exceptions
( self, exc_type: type[BaseException] | None, exc_val: BaseException | None, _
custom_components/proton_drive/api.py:78
↓ 2 callersMethodasync_step_auth
Allow user to provide its Proton credentials.
custom_components/proton_drive/config_flow.py:128
↓ 2 callersMethodasync_step_folders
Allow user to configure where the backups are stored.
custom_components/proton_drive/config_flow.py:223
↓ 2 callersFunctioncreate_credentials_from_data
Create a Credentials object from data.
custom_components/proton_drive/helpers.py:16
↓ 2 callersMethodget_backup_file_id
Get a Proton Drive link ID based on the Home Assistant backup ID.
custom_components/proton_drive/api.py:139
↓ 1 callersMethodasync_list_backups
List backups.
custom_components/proton_drive/backup.py:142
↓ 1 callersMethodasync_step_mfa
Ask user to supply a MFA code. Optional, only required if the API asks for it.
custom_components/proton_drive/config_flow.py:170
↓ 1 callersMethodasync_step_reauth_confirm
Require user to re-enter their password.
custom_components/proton_drive/config_flow.py:272
↓ 1 callersMethodasync_step_user
Handle a flow initialized by the user.
custom_components/proton_drive/config_flow.py:121
↓ 1 callersMethoddelete_backup
Delete a Home Assistant backup using the Proton Drive link ID.
custom_components/proton_drive/api.py:189
↓ 1 callersMethoddownload_backup
Download a Home Assistant backup using the Proton Drive link ID.
custom_components/proton_drive/api.py:150
↓ 1 callersFunctionform_config_auth
Create a form schema for the authentication step.
custom_components/proton_drive/config_flow.py:34
↓ 1 callersFunctionform_config_folders
Create a form schema for the folders config step.
custom_components/proton_drive/config_flow.py:80
↓ 1 callersFunctionform_config_mfa
Create a form schema for the MFA step.
custom_components/proton_drive/config_flow.py:67
↓ 1 callersFunctionform_config_reauth
Create a form schema for the reauthentication step.
custom_components/proton_drive/config_flow.py:53
↓ 1 callersMethodlist_backups
List Home Assistant backups.
custom_components/proton_drive/api.py:196
↓ 1 callersMethodlist_shares
List available share drives.
custom_components/proton_drive/api.py:127
↓ 1 callersMethodlogin
Get credentials from.
custom_components/proton_drive/api.py:211
↓ 1 callersFunctionupdate_config
Update the config entry with new credentials.
custom_components/proton_drive/__init__.py:37
↓ 1 callersFunctionupdate_creds
(creds: Credentials)
tester.py:13
↓ 1 callersMethodupload_backup
Upload a Home Assistant backup.
custom_components/proton_drive/api.py:163
Method__aenter__
Enter the context manager.
custom_components/proton_drive/api.py:65
Method__aexit__
Exit the context manager.
custom_components/proton_drive/api.py:69
Method__enter__
Enter the context manager.
custom_components/proton_drive/api.py:52
Method__exit__
Exit the context manager.
custom_components/proton_drive/api.py:56
Method__init__
Initialize.
custom_components/proton_drive/config_flow.py:110
Method__init__
Client for the Proton Drive API.
custom_components/proton_drive/api.py:101
Method__init__
Initialize the cloud backup sync agent.
custom_components/proton_drive/backup.py:64
Method__update_creds
(self, creds: Credentials)
custom_components/proton_drive/config_flow.py:220
Methodasync_delete_backup
Delete a backup file. Raises BackupNotFound if the backup does not exist. :param backup_id: The ID of the backup that was r
custom_components/proton_drive/backup.py:116
Methodasync_download_backup
Download a backup file. Raises BackupNotFound if the backup does not exist. :param backup_id: The ID of the backup that was
custom_components/proton_drive/backup.py:72
Methodasync_get_backup
Return a backup. Raises BackupNotFound if the backup does not exist.
custom_components/proton_drive/backup.py:150
Functionasync_get_backup_agents
Return a list of backup agents.
custom_components/proton_drive/backup.py:27
Functionasync_notify_backup_listeners
()
custom_components/proton_drive/__init__.py:80
Functionasync_register_backup_agents_listener
Register a listener to be called when agents are added or removed. :return: A function to unregister the listener.
custom_components/proton_drive/backup.py:36
Functionasync_setup_entry
Set up Proton Drive from a config entry.
custom_components/proton_drive/__init__.py:55
Methodasync_step_reauth
Handle a flow started when the user need to reauthenticate.
custom_components/proton_drive/config_flow.py:264
Methodasync_step_reconfigure
Reconfigure part of the flow.
custom_components/proton_drive/config_flow.py:284
Functionasync_unload_entry
Unload a config entry.
custom_components/proton_drive/__init__.py:89
Functionasync_update_entry
()
custom_components/proton_drive/__init__.py:43
Methodasync_upload_backup
Upload a backup. :param open_stream: A function returning an async iterator that yields bytes. :param backup: Metadata about
custom_components/proton_drive/backup.py:97
Functionremove_listener
Remove the listener.
custom_components/proton_drive/backup.py:50