25 lines
699 B
Python
25 lines
699 B
Python
"""ESPHome constants."""
|
|
|
|
from awesomeversion import AwesomeVersion
|
|
|
|
DOMAIN = "esphome"
|
|
|
|
CONF_ALLOW_SERVICE_CALLS = "allow_service_calls"
|
|
CONF_SUBSCRIBE_LOGS = "subscribe_logs"
|
|
CONF_DEVICE_NAME = "device_name"
|
|
CONF_NOISE_PSK = "noise_psk"
|
|
CONF_BLUETOOTH_MAC_ADDRESS = "bluetooth_mac_address"
|
|
|
|
DEFAULT_ALLOW_SERVICE_CALLS = True
|
|
DEFAULT_NEW_CONFIG_ALLOW_ALLOW_SERVICE_CALLS = False
|
|
|
|
|
|
STABLE_BLE_VERSION_STR = "2025.2.1"
|
|
STABLE_BLE_VERSION = AwesomeVersion(STABLE_BLE_VERSION_STR)
|
|
PROJECT_URLS = {
|
|
"esphome.bluetooth-proxy": "https://esphome.github.io/bluetooth-proxies/",
|
|
}
|
|
DEFAULT_URL = f"https://esphome.io/changelog/{STABLE_BLE_VERSION_STR}.html"
|
|
|
|
DATA_FFMPEG_PROXY = f"{DOMAIN}.ffmpeg_proxy"
|