This commit is contained in:
Jon Maddox 2015-10-07 01:37:40 -04:00
parent c83324d4cf
commit 26939ce554
2 changed files with 2 additions and 1 deletions
homeassistant/components/media_player

View file

@ -189,6 +189,7 @@ def media_previous_track(hass, entity_id=None):
data = {ATTR_ENTITY_ID: entity_id} if entity_id else {}
hass.services.call(DOMAIN, SERVICE_MEDIA_PREVIOUS_TRACK, data)
def play_media(hass, media_type, media_id, entity_id=None):
""" Send the media player the command for playing media. """
data = {"media_type": media_type, "media_id": media_id}