mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 18:39:30 +00:00
Co-authored-by: Hugo van Rijswijk <git@hugovr.nl> Co-authored-by: ElCruncharino <ElCruncharino@users.noreply.github.com> Co-authored-by: Erik Montnemery <erik@montnemery.com>
23 lines
518 B
Python
23 lines
518 B
Python
"""Constants for the Backblaze B2 integration."""
|
|
|
|
from collections.abc import Callable
|
|
from typing import Final
|
|
|
|
from homeassistant.util.hass_dict import HassKey
|
|
|
|
DOMAIN: Final = "backblaze_b2"
|
|
|
|
CONF_KEY_ID = "key_id"
|
|
CONF_APPLICATION_KEY = "application_key"
|
|
CONF_BUCKET = "bucket"
|
|
CONF_PREFIX = "prefix"
|
|
|
|
DATA_BACKUP_AGENT_LISTENERS: HassKey[list[Callable[[], None]]] = HassKey(
|
|
f"{DOMAIN}.backup_agent_listeners"
|
|
)
|
|
|
|
METADATA_FILE_SUFFIX = ".metadata.json"
|
|
METADATA_VERSION = "1"
|
|
|
|
BACKBLAZE_REALM = "production"
|