mirror of
https://github.com/home-assistant/core.git
synced 2025-06-07 06:37:07 +00:00

* Add S3 integration * Improve translations and error handling * Test S3 integration * Update QoS * Add missing data_description strings * Fix missing async_initialize_backup in tests * PR changes * Remove unique ID, rely on abort_entries_match * Raise only BackupAgentError (#139754), introduce decorator for error handling * Switch to metadata-file based solution * PR changes * Revert strict typing * Bump dependency * Silence mypy * Pass docs URLs as description_placeholders * PR changes * Rename _api to api * PR Changes * PR Changes 2 * Remove api abstraction * Handle S3 multipart upload size limitations * PR changes
23 lines
699 B
Python
23 lines
699 B
Python
"""Constants for the S3 integration."""
|
|
|
|
from collections.abc import Callable
|
|
from typing import Final
|
|
|
|
from homeassistant.util.hass_dict import HassKey
|
|
|
|
DOMAIN: Final = "s3"
|
|
|
|
CONF_ACCESS_KEY_ID = "access_key_id"
|
|
CONF_SECRET_ACCESS_KEY = "secret_access_key"
|
|
CONF_ENDPOINT_URL = "endpoint_url"
|
|
CONF_BUCKET = "bucket"
|
|
|
|
DEFAULT_ENDPOINT_URL = "https://s3.eu-central-1.amazonaws.com/"
|
|
|
|
DATA_BACKUP_AGENT_LISTENERS: HassKey[list[Callable[[], None]]] = HassKey(
|
|
f"{DOMAIN}.backup_agent_listeners"
|
|
)
|
|
|
|
DESCRIPTION_AWS_S3_DOCS_URL = "https://docs.aws.amazon.com/general/latest/gr/s3.html"
|
|
DESCRIPTION_BOTO3_DOCS_URL = "https://boto3.amazonaws.com/v1/documentation/api/latest/reference/core/session.html"
|