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

Namespaces

 application_credentials
 
 browse_media
 
 config_flow
 
 const
 
 coordinator
 
 diagnostics
 
 entity
 
 media_player
 
 models
 
 system_health
 
 util
 

Functions

bool async_setup_entry (HomeAssistant hass, SpotifyConfigEntry entry)
 
bool async_unload_entry (HomeAssistant hass, ConfigEntry entry)
 

Variables

list __all__
 
list PLATFORMS = [Platform.MEDIA_PLAYER]
 

Detailed Description

The spotify integration.

Function Documentation

◆ async_setup_entry()

bool homeassistant.components.spotify.async_setup_entry ( HomeAssistant  hass,
SpotifyConfigEntry  entry 
)
Set up Spotify from a config entry.

Definition at line 43 of file __init__.py.

◆ async_unload_entry()

bool homeassistant.components.spotify.async_unload_entry ( HomeAssistant  hass,
ConfigEntry  entry 
)
Unload Spotify config entry.

Definition at line 95 of file __init__.py.

Variable Documentation

◆ __all__

list homeassistant.components.spotify.__all__
private
Initial value:
1 = [
2  "async_browse_media",
3  "DOMAIN",
4  "spotify_uri_from_media_browser_url",
5  "is_spotify_media_type",
6  "resolve_spotify_media_type",
7 ]

Definition at line 34 of file __init__.py.

◆ PLATFORMS

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

Definition at line 32 of file __init__.py.