2023-01-18 16:59:55 +00:00
|
|
|
"""ESPHome constants."""
|
2024-03-08 13:15:26 +00:00
|
|
|
|
2023-07-08 07:19:44 +00:00
|
|
|
from awesomeversion import AwesomeVersion
|
2023-01-18 16:59:55 +00:00
|
|
|
|
|
|
|
DOMAIN = "esphome"
|
2023-06-26 01:18:21 +00:00
|
|
|
|
|
|
|
CONF_ALLOW_SERVICE_CALLS = "allow_service_calls"
|
2025-02-25 20:56:39 +00:00
|
|
|
CONF_SUBSCRIBE_LOGS = "subscribe_logs"
|
2023-07-08 07:19:44 +00:00
|
|
|
CONF_DEVICE_NAME = "device_name"
|
|
|
|
CONF_NOISE_PSK = "noise_psk"
|
2025-02-28 22:17:44 +00:00
|
|
|
CONF_BLUETOOTH_MAC_ADDRESS = "bluetooth_mac_address"
|
2023-07-08 07:19:44 +00:00
|
|
|
|
2023-06-26 01:18:21 +00:00
|
|
|
DEFAULT_ALLOW_SERVICE_CALLS = True
|
|
|
|
DEFAULT_NEW_CONFIG_ALLOW_ALLOW_SERVICE_CALLS = False
|
2023-07-08 07:19:44 +00:00
|
|
|
|
|
|
|
|
2025-03-03 17:44:49 +00:00
|
|
|
STABLE_BLE_VERSION_STR = "2025.2.2"
|
2023-07-08 07:19:44 +00:00
|
|
|
STABLE_BLE_VERSION = AwesomeVersion(STABLE_BLE_VERSION_STR)
|
|
|
|
PROJECT_URLS = {
|
|
|
|
"esphome.bluetooth-proxy": "https://esphome.github.io/bluetooth-proxies/",
|
|
|
|
}
|
2025-03-02 15:50:35 +00:00
|
|
|
# ESPHome always uses .0 for the changelog URL
|
|
|
|
STABLE_BLE_URL_VERSION = f"{STABLE_BLE_VERSION.major}.{STABLE_BLE_VERSION.minor}.0"
|
|
|
|
DEFAULT_URL = f"https://esphome.io/changelog/{STABLE_BLE_URL_VERSION}.html"
|
2024-09-09 02:22:35 +00:00
|
|
|
|
|
|
|
DATA_FFMPEG_PROXY = f"{DOMAIN}.ffmpeg_proxy"
|