Home Assistant Unofficial Reference
2024.12.1
const.py
Go to the documentation of this file.
1
"""Constants for the LaMetric integration."""
2
3
from
datetime
import
timedelta
4
import
logging
5
from
typing
import
Final
6
7
from
homeassistant.const
import
Platform
8
9
DOMAIN: Final =
"lametric"
10
PLATFORMS = [
11
Platform.BUTTON,
12
Platform.NUMBER,
13
Platform.SELECT,
14
Platform.SENSOR,
15
Platform.SWITCH,
16
]
17
18
LOGGER = logging.getLogger(__package__)
19
SCAN_INTERVAL =
timedelta
(seconds=30)
20
21
CONF_CYCLES: Final =
"cycles"
22
CONF_DATA: Final =
"data"
23
CONF_ICON_TYPE: Final =
"icon_type"
24
CONF_LIFETIME: Final =
"lifetime"
25
CONF_MESSAGE: Final =
"message"
26
CONF_PRIORITY: Final =
"priority"
27
CONF_SOUND: Final =
"sound"
28
29
SERVICE_MESSAGE: Final =
"message"
30
SERVICE_CHART: Final =
"chart"
homeassistant.components.uptimerobot.const.timedelta
timedelta
Definition:
const.py:14
homeassistant.const
Definition:
const.py:1
core
homeassistant
components
lametric
const.py
Generated by
1.9.1