2021-03-16 23:32:02 +00:00
|
|
|
"""Constants for the ScreenLogic integration."""
|
2021-04-21 18:45:50 +00:00
|
|
|
from screenlogicpy.const import COLOR_MODE
|
|
|
|
|
|
|
|
from homeassistant.util import slugify
|
2021-03-16 23:32:02 +00:00
|
|
|
|
|
|
|
DOMAIN = "screenlogic"
|
|
|
|
DEFAULT_SCAN_INTERVAL = 30
|
|
|
|
MIN_SCAN_INTERVAL = 10
|
|
|
|
|
2021-04-21 18:45:50 +00:00
|
|
|
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()
|
|
|
|
}
|
|
|
|
|
2021-03-16 23:32:02 +00:00
|
|
|
DISCOVERED_GATEWAYS = "_discovered_gateways"
|