Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.group.notify Namespace Reference

Classes

class  GroupNotifyPlatform
 
class  NotifyGroup
 

Functions

Any _backward_compat_schema (Any|None value)
 
dict[str, Any] add_defaults (dict[str, Any] input_data, Mapping[str, Any] default_data)
 
NotifyGroup async_create_preview_notify (HomeAssistant hass, str name, dict[str, Any] validated_config)
 
GroupNotifyPlatform async_get_service (HomeAssistant hass, ConfigType config, DiscoveryInfoType|None discovery_info=None)
 
None async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

string CONF_SERVICES = "services"
 
 PLATFORM_SCHEMA
 

Detailed Description

Group platform for notify component.

Function Documentation

◆ _backward_compat_schema()

Any homeassistant.components.group.notify._backward_compat_schema ( Any | None  value)
private
Backward compatibility for notify service schemas.

Definition at line 41 of file notify.py.

◆ add_defaults()

dict[str, Any] homeassistant.components.group.notify.add_defaults ( dict[str, Any]  input_data,
Mapping[str, Any]   default_data 
)
Deep update a dictionary with default values.

Definition at line 76 of file notify.py.

◆ async_create_preview_notify()

NotifyGroup homeassistant.components.group.notify.async_create_preview_notify ( HomeAssistant  hass,
str  name,
dict[str, Any]   validated_config 
)
Create a preview notify group.

Definition at line 147 of file notify.py.

◆ async_get_service()

GroupNotifyPlatform homeassistant.components.group.notify.async_get_service ( HomeAssistant  hass,
ConfigType  config,
DiscoveryInfoType | None   discovery_info = None 
)
Get the Group notification service.

Definition at line 88 of file notify.py.

◆ async_setup_entry()

None homeassistant.components.group.notify.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Initialize Notify Group config entry.

Definition at line 130 of file notify.py.

Variable Documentation

◆ CONF_SERVICES

string homeassistant.components.group.notify.CONF_SERVICES = "services"

Definition at line 38 of file notify.py.

◆ PLATFORM_SCHEMA

homeassistant.components.group.notify.PLATFORM_SCHEMA
Initial value:
1 = NOTIFY_PLATFORM_SCHEMA.extend(
2  {
3  vol.Required(CONF_SERVICES): vol.All(
4  cv.ensure_list,
5  [
6  vol.All(
7  _backward_compat_schema,
8  {
9  vol.Required(CONF_ACTION): cv.slug,
10  vol.Optional(ATTR_DATA): dict,
11  },
12  )
13  ],
14  )
15  }
16 )

Definition at line 58 of file notify.py.