Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants for the sentry integration."""
2 
3 import logging
4 
5 DOMAIN = "sentry"
6 
7 CONF_DSN = "dsn"
8 CONF_ENVIRONMENT = "environment"
9 CONF_EVENT_CUSTOM_COMPONENTS = "event_custom_components"
10 CONF_EVENT_HANDLED = "event_handled"
11 CONF_EVENT_THIRD_PARTY_PACKAGES = "event_third_party_packages"
12 CONF_LOGGING_EVENT_LEVEL = "logging_event_level"
13 CONF_LOGGING_LEVEL = "logging_level"
14 CONF_TRACING = "tracing"
15 CONF_TRACING_SAMPLE_RATE = "tracing_sample_rate"
16 
17 DEFAULT_LOGGING_EVENT_LEVEL = logging.ERROR
18 DEFAULT_LOGGING_LEVEL = logging.WARNING
19 DEFAULT_TRACING_SAMPLE_RATE = 1.0
20 
21 LOGGING_LEVELS = {
22  logging.DEBUG: "debug",
23  logging.INFO: "info",
24  logging.WARNING: "warning",
25  logging.ERROR: "error",
26  logging.CRITICAL: "critical",
27 }
28 
29 ENTITY_COMPONENTS = [
30  "air_quality",
31  "alarm_control_panel",
32  "binary_sensor",
33  "calendar",
34  "camera",
35  "climate",
36  "cover",
37  "device_tracker",
38  "fan",
39  "geo_location",
40  "group",
41  "humidifier",
42  "light",
43  "lock",
44  "media_player",
45  "remote",
46  "scene",
47  "sensor",
48  "switch",
49  "vacuum",
50  "water_heater",
51  "weather",
52 ]