Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants for the Azure Data Explorer integration."""
2 
3 from __future__ import annotations
4 
5 from typing import Any
6 
7 from homeassistant.const import STATE_UNAVAILABLE, STATE_UNKNOWN
8 
9 DOMAIN = "azure_data_explorer"
10 
11 CONF_ADX_CLUSTER_INGEST_URI = "cluster_ingest_uri"
12 CONF_ADX_DATABASE_NAME = "database"
13 CONF_ADX_TABLE_NAME = "table"
14 CONF_APP_REG_ID = "client_id"
15 CONF_APP_REG_SECRET = "client_secret"
16 CONF_AUTHORITY_ID = "authority_id"
17 CONF_SEND_INTERVAL = "send_interval"
18 CONF_MAX_DELAY = "max_delay"
19 CONF_FILTER = "filter"
20 CONF_USE_QUEUED_CLIENT = "use_queued_ingestion"
21 STEP_USER = "user"
22 
23 
24 DEFAULT_SEND_INTERVAL: int = 5
25 DEFAULT_MAX_DELAY: int = 30
26 DEFAULT_OPTIONS: dict[str, Any] = {CONF_SEND_INTERVAL: DEFAULT_SEND_INTERVAL}
27 
28 ADDITIONAL_ARGS: dict[str, Any] = {"logging_enable": False}
29 FILTER_STATES = (STATE_UNKNOWN, STATE_UNAVAILABLE)