Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.songpal Namespace Reference

Namespaces

 config_flow
 
 const
 
 media_player
 

Functions

bool async_setup (HomeAssistant hass, ConfigType config)
 
bool async_setup_entry (HomeAssistant hass, ConfigEntry entry)
 
bool async_unload_entry (HomeAssistant hass, ConfigEntry entry)
 

Variables

 CONFIG_SCHEMA
 
list PLATFORMS = [Platform.MEDIA_PLAYER]
 
 SONGPAL_CONFIG_SCHEMA
 

Detailed Description

The songpal component.

Function Documentation

◆ async_setup()

bool homeassistant.components.songpal.async_setup ( HomeAssistant  hass,
ConfigType  config 
)
Set up songpal environment.

Definition at line 25 of file __init__.py.

◆ async_setup_entry()

bool homeassistant.components.songpal.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry 
)
Set up songpal media player.

Definition at line 40 of file __init__.py.

◆ async_unload_entry()

bool homeassistant.components.songpal.async_unload_entry ( HomeAssistant  hass,
ConfigEntry  entry 
)
Unload songpal media player.

Definition at line 46 of file __init__.py.

Variable Documentation

◆ CONFIG_SCHEMA

homeassistant.components.songpal.CONFIG_SCHEMA
Initial value:
1 = vol.Schema(
2  {vol.Optional(DOMAIN): vol.All(cv.ensure_list, [SONGPAL_CONFIG_SCHEMA])},
3  extra=vol.ALLOW_EXTRA,
4 )

Definition at line 17 of file __init__.py.

◆ PLATFORMS

list homeassistant.components.songpal.PLATFORMS = [Platform.MEDIA_PLAYER]

Definition at line 22 of file __init__.py.

◆ SONGPAL_CONFIG_SCHEMA

homeassistant.components.songpal.SONGPAL_CONFIG_SCHEMA
Initial value:
1 = vol.Schema(
2  {vol.Optional(CONF_NAME): cv.string, vol.Required(CONF_ENDPOINT): cv.string}
3 )

Definition at line 13 of file __init__.py.