Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.persistent_notification.trigger Namespace Reference

Functions

CALLBACK_TYPE async_attach_trigger (HomeAssistant hass, ConfigType config, TriggerActionType action, TriggerInfo trigger_info)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 Final
 
 TRIGGER_SCHEMA
 

Detailed Description

Offer persistent_notifications triggered automation rules.

Function Documentation

◆ async_attach_trigger()

CALLBACK_TYPE homeassistant.components.persistent_notification.trigger.async_attach_trigger ( HomeAssistant  hass,
ConfigType  config,
TriggerActionType  action,
TriggerInfo  trigger_info 
)
Listen for state changes based on configuration.

Definition at line 35 of file trigger.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.persistent_notification.trigger._LOGGER = logging.getLogger(__name__)
private

Definition at line 18 of file trigger.py.

◆ Final

homeassistant.components.persistent_notification.trigger.Final

Definition at line 21 of file trigger.py.

◆ TRIGGER_SCHEMA

homeassistant.components.persistent_notification.trigger.TRIGGER_SCHEMA
Initial value:
1 = cv.TRIGGER_BASE_SCHEMA.extend(
2  {
3  vol.Required(CONF_PLATFORM): "persistent_notification",
4  vol.Optional(CONF_NOTIFICATION_ID): str,
5  vol.Optional(CONF_UPDATE_TYPE): vol.All(
6  cv.ensure_list, [vol.Coerce(UpdateType)]
7  ),
8  }
9 )

Definition at line 24 of file trigger.py.