Fix media_player descriptions and select_source (#3030)

🐬
This commit is contained in:
Martin Hjelmare 2016-08-29 04:00:43 +02:00 committed by Teagan Glenn
parent b6ad0bfbea
commit 1699885907
2 changed files with 5 additions and 6 deletions

View File

@ -97,7 +97,6 @@ SERVICE_TO_METHOD = {
SERVICE_MEDIA_STOP: 'media_stop', SERVICE_MEDIA_STOP: 'media_stop',
SERVICE_MEDIA_NEXT_TRACK: 'media_next_track', SERVICE_MEDIA_NEXT_TRACK: 'media_next_track',
SERVICE_MEDIA_PREVIOUS_TRACK: 'media_previous_track', SERVICE_MEDIA_PREVIOUS_TRACK: 'media_previous_track',
SERVICE_SELECT_SOURCE: 'select_source',
SERVICE_CLEAR_PLAYLIST: 'clear_playlist' SERVICE_CLEAR_PLAYLIST: 'clear_playlist'
} }

View File

@ -40,25 +40,25 @@ volume_down:
description: Name(s) of entities to turn volume down on description: Name(s) of entities to turn volume down on
example: 'media_player.living_room_sonos' example: 'media_player.living_room_sonos'
mute_volume: volume_mute:
description: Mute a media player's volume description: Mute a media player's volume
fields: fields:
entity_id: entity_id:
description: Name(s) of entities to mute description: Name(s) of entities to mute
example: 'media_player.living_room_sonos' example: 'media_player.living_room_sonos'
mute: is_volume_muted:
description: True/false for mute/unmute description: True/false for mute/unmute
example: true example: true
set_volume_level: volume_set:
description: Set a media player's volume level description: Set a media player's volume level
fields: fields:
entity_id: entity_id:
description: Name(s) of entities to set volume level on description: Name(s) of entities to set volume level on
example: 'media_player.living_room_sonos' example: 'media_player.living_room_sonos'
volume: volume_level:
description: Volume level to set description: Volume level to set
example: 60 example: 60
@ -117,7 +117,7 @@ media_seek:
entity_id: entity_id:
description: Name(s) of entities to seek media on description: Name(s) of entities to seek media on
example: 'media_player.living_room_chromecast' example: 'media_player.living_room_chromecast'
position: seek_position:
description: Position to seek to. The format is platform dependent. description: Position to seek to. The format is platform dependent.
example: 100 example: 100