2022-02-20 11:47:36 +01:00
|
|
|
"""Constants for the LaMetric integration."""
|
|
|
|
|
2022-08-20 19:06:35 +02:00
|
|
|
from datetime import timedelta
|
2022-02-20 11:47:36 +01:00
|
|
|
import logging
|
|
|
|
from typing import Final
|
|
|
|
|
2022-08-20 19:06:35 +02:00
|
|
|
from homeassistant.const import Platform
|
|
|
|
|
2022-02-20 11:47:36 +01:00
|
|
|
DOMAIN: Final = "lametric"
|
2022-10-09 21:28:35 +02:00
|
|
|
PLATFORMS = [Platform.BUTTON, Platform.NUMBER, Platform.SENSOR, Platform.SWITCH]
|
2022-02-20 11:47:36 +01:00
|
|
|
|
|
|
|
LOGGER = logging.getLogger(__package__)
|
2022-08-20 19:06:35 +02:00
|
|
|
SCAN_INTERVAL = timedelta(seconds=30)
|
2022-02-20 11:47:36 +01:00
|
|
|
|
|
|
|
CONF_CYCLES: Final = "cycles"
|
2022-08-18 00:49:11 +02:00
|
|
|
CONF_ICON_TYPE: Final = "icon_type"
|
2022-02-20 11:47:36 +01:00
|
|
|
CONF_LIFETIME: Final = "lifetime"
|
|
|
|
CONF_PRIORITY: Final = "priority"
|
2022-08-18 00:49:11 +02:00
|
|
|
CONF_SOUND: Final = "sound"
|