mirror of
https://github.com/home-assistant/core.git
synced 2026-07-01 11:46:40 +01:00
22 lines
540 B
Python
22 lines
540 B
Python
"""Constants for the SFTP Storage integration."""
|
|
|
|
from collections.abc import Callable
|
|
import logging
|
|
from typing import Final
|
|
|
|
from homeassistant.util.hass_dict import HassKey
|
|
|
|
DOMAIN: Final = "sftp_storage"
|
|
|
|
LOGGER = logging.getLogger(__package__)
|
|
|
|
CONF_PRIVATE_KEY_FILE: Final = "private_key_file"
|
|
CONF_BACKUP_LOCATION: Final = "backup_location"
|
|
|
|
BUF_SIZE = 2**20 * 4 # 4MB
|
|
|
|
DATA_BACKUP_AGENT_LISTENERS: HassKey[list[Callable[[], None]]] = HassKey(
|
|
f"{DOMAIN}.backup_agent_listeners"
|
|
)
|
|
DEFAULT_PKEY_NAME: str = "sftp_storage_pkey"
|