Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/LouisBrunner/ha-proton-drive
/ functions
Functions
48 in github.com/LouisBrunner/ha-proton-drive
⨍
Functions
48
◇
Types & classes
9
↓ 8 callers
Method
__call_api
(cls, *, hass: HomeAssistant, call: Callable[[], Any])
custom_components/proton_drive/api.py:206
↓ 3 callers
Method
__create_root_folder_if_needed
Create the Home Assistant folder if it doesn't exist.
custom_components/proton_drive/api.py:133
↓ 3 callers
Function
serialize_credentials_to_data
Create a dictionary from Credentials object.
custom_components/proton_drive/helpers.py:26
↓ 2 callers
Method
__async_step_after_auth
(self)
custom_components/proton_drive/config_flow.py:215
↓ 2 callers
Method
__authenticate
Validate credentials.
custom_components/proton_drive/config_flow.py:295
↓ 2 callers
Method
__finish
(self)
custom_components/proton_drive/config_flow.py:303
↓ 2 callers
Method
__handle_exceptions
( self, exc_type: type[BaseException] | None, exc_val: BaseException | None, _
custom_components/proton_drive/api.py:78
↓ 2 callers
Method
async_step_auth
Allow user to provide its Proton credentials.
custom_components/proton_drive/config_flow.py:128
↓ 2 callers
Method
async_step_folders
Allow user to configure where the backups are stored.
custom_components/proton_drive/config_flow.py:223
↓ 2 callers
Function
create_credentials_from_data
Create a Credentials object from data.
custom_components/proton_drive/helpers.py:16
↓ 2 callers
Method
get_backup_file_id
Get a Proton Drive link ID based on the Home Assistant backup ID.
custom_components/proton_drive/api.py:139
↓ 1 callers
Method
async_list_backups
List backups.
custom_components/proton_drive/backup.py:142
↓ 1 callers
Method
async_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 callers
Method
async_step_reauth_confirm
Require user to re-enter their password.
custom_components/proton_drive/config_flow.py:272
↓ 1 callers
Method
async_step_user
Handle a flow initialized by the user.
custom_components/proton_drive/config_flow.py:121
↓ 1 callers
Method
delete_backup
Delete a Home Assistant backup using the Proton Drive link ID.
custom_components/proton_drive/api.py:189
↓ 1 callers
Method
download_backup
Download a Home Assistant backup using the Proton Drive link ID.
custom_components/proton_drive/api.py:150
↓ 1 callers
Function
form_config_auth
Create a form schema for the authentication step.
custom_components/proton_drive/config_flow.py:34
↓ 1 callers
Function
form_config_folders
Create a form schema for the folders config step.
custom_components/proton_drive/config_flow.py:80
↓ 1 callers
Function
form_config_mfa
Create a form schema for the MFA step.
custom_components/proton_drive/config_flow.py:67
↓ 1 callers
Function
form_config_reauth
Create a form schema for the reauthentication step.
custom_components/proton_drive/config_flow.py:53
↓ 1 callers
Method
list_backups
List Home Assistant backups.
custom_components/proton_drive/api.py:196
↓ 1 callers
Method
list_shares
List available share drives.
custom_components/proton_drive/api.py:127
↓ 1 callers
Method
login
Get credentials from.
custom_components/proton_drive/api.py:211
↓ 1 callers
Function
update_config
Update the config entry with new credentials.
custom_components/proton_drive/__init__.py:37
↓ 1 callers
Function
update_creds
(creds: Credentials)
tester.py:13
↓ 1 callers
Method
upload_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
Method
async_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
Method
async_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
Method
async_get_backup
Return a backup. Raises BackupNotFound if the backup does not exist.
custom_components/proton_drive/backup.py:150
Function
async_get_backup_agents
Return a list of backup agents.
custom_components/proton_drive/backup.py:27
Function
async_notify_backup_listeners
()
custom_components/proton_drive/__init__.py:80
Function
async_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
Function
async_setup_entry
Set up Proton Drive from a config entry.
custom_components/proton_drive/__init__.py:55
Method
async_step_reauth
Handle a flow started when the user need to reauthenticate.
custom_components/proton_drive/config_flow.py:264
Method
async_step_reconfigure
Reconfigure part of the flow.
custom_components/proton_drive/config_flow.py:284
Function
async_unload_entry
Unload a config entry.
custom_components/proton_drive/__init__.py:89
Function
async_update_entry
()
custom_components/proton_drive/__init__.py:43
Method
async_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
Function
remove_listener
Remove the listener.
custom_components/proton_drive/backup.py:50