Classes | |
| class | SpotifyMediaPlayer |
Functions | |
| Callable[[SpotifyMediaPlayer], _R|None] | _R (Callable[[SpotifyMediaPlayer, Item], _R] func) |
| def | _T |
| None | async_setup_entry (HomeAssistant hass, SpotifyConfigEntry entry, AddEntitiesCallback async_add_entities) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| int | AFTER_REQUEST_SLEEP = 1 |
| dictionary | REPEAT_MODE_MAPPING_TO_HA |
| dictionary | REPEAT_MODE_MAPPING_TO_SPOTIFY |
| tuple | SUPPORT_SPOTIFY |
Support for interacting with Spotify Connect.
|
private |
Ensure that the currently playing item is available.
Definition at line 85 of file media_player.py.
|
private |
Definition at line 98 of file media_player.py.
| None homeassistant.components.spotify.media_player.async_setup_entry | ( | HomeAssistant | hass, |
| SpotifyConfigEntry | entry, | ||
| AddEntitiesCallback | async_add_entities | ||
| ) |
Set up Spotify based on a config entry.
Definition at line 70 of file media_player.py.
|
private |
Definition at line 42 of file media_player.py.
| int homeassistant.components.spotify.media_player.AFTER_REQUEST_SLEEP = 1 |
Definition at line 67 of file media_player.py.
| dictionary homeassistant.components.spotify.media_player.REPEAT_MODE_MAPPING_TO_HA |
Definition at line 58 of file media_player.py.
| dictionary homeassistant.components.spotify.media_player.REPEAT_MODE_MAPPING_TO_SPOTIFY |
Definition at line 64 of file media_player.py.
| tuple homeassistant.components.spotify.media_player.SUPPORT_SPOTIFY |
Definition at line 44 of file media_player.py.