1 """Provide common notify constants."""
5 import voluptuous
as vol
12 ATTR_MESSAGE =
"message"
15 ATTR_TARGET =
"target"
18 ATTR_RECIPIENTS =
"recipients"
25 LOGGER = logging.getLogger(__package__)
27 SERVICE_NOTIFY =
"notify"
28 SERVICE_SEND_MESSAGE =
"send_message"
29 SERVICE_PERSISTENT_NOTIFICATION =
"persistent_notification"
31 NOTIFY_SERVICE_SCHEMA = vol.Schema(
33 vol.Required(ATTR_MESSAGE): cv.string,
34 vol.Optional(ATTR_TITLE): cv.string,
35 vol.Optional(ATTR_TARGET): vol.All(cv.ensure_list, [cv.string]),
36 vol.Optional(ATTR_DATA): dict,