Classes | |
| class | PandoraMediaPlayer |
Functions | |
| def | _pianobar_exists () |
| None | setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback add_entities, DiscoveryInfoType|None discovery_info=None) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| dictionary | CMD_MAP |
| CURRENT_SONG_PATTERN = re.compile(r'"(.*?)"\s+by\s+"(.*?)"\son\s+"(.*?)"', re.MULTILINE) | |
| MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=2) | |
| STATION_PATTERN = re.compile(r'Station\s"(.+?)"', re.MULTILINE) | |
Component for controlling Pandora stations through the pianobar client.
|
private |
Verify that Pianobar is properly installed.
Definition at line 327 of file media_player.py.
| None homeassistant.components.pandora.media_player.setup_platform | ( | HomeAssistant | hass, |
| ConfigType | config, | ||
| AddEntitiesCallback | add_entities, | ||
| DiscoveryInfoType | None | discovery_info = None |
||
| ) |
Set up the Pandora media player platform.
Definition at line 48 of file media_player.py.
|
private |
Definition at line 33 of file media_player.py.
| dictionary homeassistant.components.pandora.media_player.CMD_MAP |
Definition at line 36 of file media_player.py.
| homeassistant.components.pandora.media_player.CURRENT_SONG_PATTERN = re.compile(r'"(.*?)"\s+by\s+"(.*?)"\son\s+"(.*?)"', re.MULTILINE) |
Definition at line 44 of file media_player.py.
| homeassistant.components.pandora.media_player.MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=2) |
Definition at line 43 of file media_player.py.
| homeassistant.components.pandora.media_player.STATION_PATTERN = re.compile(r'Station\s"(.+?)"', re.MULTILINE) |
Definition at line 45 of file media_player.py.