From 9f3ca0bf2cedcc6f06b107fe0ad6ccff74c54e26 Mon Sep 17 00:00:00 2001 From: starkillerOG Date: Fri, 1 Jun 2018 15:30:24 +0200 Subject: [PATCH] Media player: sound mode structure (#17) * Media player: sound mode structure see this Issue in the architecture fork: https://github.com/home-assistant/architecture/issues/23 * remove select_sound_mode_supported --- docs/entity_media_player.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/entity_media_player.md b/docs/entity_media_player.md index a2798bac..3729096c 100644 --- a/docs/entity_media_player.md +++ b/docs/entity_media_player.md @@ -11,6 +11,19 @@ sidebar_label: Media Player | Name | Type | Default | Description | ---- | ---- | ------- | ----------- +| sound_mode | string | None | The current sound mode of the media player +| sound_mode_list | list | None | Dynamic list of available sound modes (set by platform, empty means sound mode not supported) + ## Methods +### Select sound mode +Optional. Switch the sound mode of the media player. + class MyMediaPlayer(MediaPlayerDevice): + # Implement one of these methods. + + def select_sound_mode(self, sound_mode): + """Switch the sound mode of the entity.""" + + def async_select_sound_mode(self, sound_mode): + """Switch the sound mode of the entity."""