mirror of
https://github.com/home-assistant/core.git
synced 2026-05-26 18:26:25 +01:00
20c35e6032
Co-authored-by: Kevin Worrel <37058192+dieselrabbit@users.noreply.github.com>
19 lines
527 B
Python
19 lines
527 B
Python
"""Constants for the ScreenLogic integration."""
|
|
from screenlogicpy.const import CIRCUIT_FUNCTION, COLOR_MODE
|
|
|
|
from homeassistant.util import slugify
|
|
|
|
DOMAIN = "screenlogic"
|
|
DEFAULT_SCAN_INTERVAL = 30
|
|
MIN_SCAN_INTERVAL = 10
|
|
|
|
SERVICE_SET_COLOR_MODE = "set_color_mode"
|
|
ATTR_COLOR_MODE = "color_mode"
|
|
SUPPORTED_COLOR_MODES = {
|
|
slugify(name): num for num, name in COLOR_MODE.NAME_FOR_NUM.items()
|
|
}
|
|
|
|
LIGHT_CIRCUIT_FUNCTIONS = {CIRCUIT_FUNCTION.INTELLIBRITE, CIRCUIT_FUNCTION.LIGHT}
|
|
|
|
DISCOVERED_GATEWAYS = "_discovered_gateways"
|